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 ...
You can also download the project, build it with mvn clean install and add the generated jar to your buildpath.