JPHP - an implementation of PHP on Java VM
APACHE-2.0 License
JPHP is a new implementation for PHP which uses the Java VM. It supports many features of the PHP language (7.1+).
How does it work? JPHP is a compiler like javac
, it compiles php sources to JVM bytecode and then
can execute the result on the Java VM.
We develop a new IDE for beginners like Game Maker
or Scirra Construct
. It's based on JPHP, JavaFX, Java 8, Gradle and allows to create desktop games and apps for Linux, Windows and Mac (maybe Android and other platforms in future). The project name is DevelNext
(https://github.com/jphp-group/develnext-ide), the current status and version of the project is BETA. The project has not yet been localized in English.
JPHP is not a replacement for the Zend PHP engine or Facebook HHVM. We don’t plan to implement the zend runtime libraries (e.g. Curl, PRCE, etc.) for JPHP.
Our project started in October 2013. There were a few reasons for that:
What JPHP supports from PHP 7.2?
What JPHP supports from PHP 7.3?
What JPHP supports from PHP 7.4?
jppm init
jppm start
.You will see Hello World
in your console, the sources of this program will be in src/index.php
.
jppm update jphp-core
// via jphp
./gradlew bench
// via php
php -f bench/src/bench.php
Use gradle install
to build and install the jphp modules and libraries into the mavel local repository. After this, you can use jphp in your projects as a maven dependency.
org.develnext.jphp:jphp-<module>:<version>-SNAPSHOT