Caucho Resin offers 100% php compatibility on the JVM, so that you can host your entire app in a servlet container, and port features one by one. http://www.caucho.com/resin-3.1/doc/quercus.xtp
The PHP-to-Scala migration helper uses Resin/Quercus to provide the standard library to translate PHP to Scala. The output is a Scala codebase, so that you never have to touch the legacy PHP again. https://code.google.com/p/php-to-scala-migration-helper/