Why would you write PHP code to run on a Java platform?
PHP and Java are completely different things; you can't just run PHP code on a JVM. PHP has to be executed by the PHP interpretor. You can, of course, set PHP and Java code up to communicate with each other, but not to run in each others environment.
That PHP/Java Bridge thing you mention in your title appears to be exactly that; a way for PHP and Java code to communicate with each other. They still run on their own, in their own processes. The PHP code just sends requests to a running Java server to execute functions and return results. Much like SOAP, just faster.
Comment