Home > Article > Backend Development > Let PHP run on JVM - JPHP
JPHP is a PHP implementation for Java virtual machine, supporting many features of PHP (5.3+). JPHP is responsible for compiling PHP source code into JVM bytecode so that it can run on the JVM. This is similar to JRuby, Jython and other implementations. It supports JDK 1.6 and above. The project was launched in October last year. JPHP is not intended to replace the Zend PHP engine or Facebook HHVM (the idea of HHVM is to compile PHP into an intermediate bytecode, and then compile the bytecode into x64 machine code through JIT). The designers do not intend to implement Zend runtime libraries (such as Curl, PRCE, etc.) for JPHP for the following reasons:
JPHP has the following functions:
Language features include:
For more features, please view the README file of this project. In addition, JPHP also provides some features that PHP does not support, such as the use of exceptions in the __toString method, type constraints on scalars, etc. JPHP is not the first attempt to improve PHP performance. We will wait and see how effective it will be. Interested readers can download and try it out. |