Home>Article>Backend Development> How PHP integrates with JAVA
JPHP is a PHP compiler based on JavaVM. Similar to javac, PHP source code can be compiled into JVM bytecode and executed in the JVM.
Supports many features of PHP (5.6), JDK 1.6, supports Android platform.
The author stated that JPHP is not intended to replace Zend PHP engine or Facebook HHVM. (Recommended learning:PHP programming from entry to proficiency)
JPHPis a new PHP compiler and new runtime library written in the Java language, supporting multiple Threads, unicode strings (UTF-16), GUI, Android development and embedded web applications, JPHP can compile PHP source code into JVM bytecode and execute it in the JVM.
Main features include:
Through JIT (1x - 10x faster than PHP 5.5), improve performance by optimizing constant expressions, inline functions, etc.;
Supports the use of Java classes and libraries in PHP code;
Supports strings (UTF-16);
Supports threads, Sockets, and environment architecture (including sandbox objects in runkit zend extension);
Support GUI (based on Swing, improved and more flexible layout);
Embedded caching system;
Support Android OS;
Embedded caching system for classes and functions
and so on.
The above is the detailed content of How PHP integrates with JAVA. For more information, please follow other related articles on the PHP Chinese website!