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.