There is a Java webserver called Caucho that also supports PHP.
It works like that: It converts PHP code "on-the-fly" into Java servlets and gains a performance gain this way.
Additionally you can host Java (JSP, Tapestry, Wicket...) applications at the same time as PHP and just drop Java files into the same htdocs folder as PHP files.
However all PHP code must be clean in order to work.
Please have a look yourself and test it - this could also help you to notice some parts in the code earlier that don't work or have "warnings".
In general it works and makes Dolphin really fast......so please keep the Caucho server in your mind when developing!