Does the php Engine Use JIT technology? If not, why?
Source: Internet
Author: User
0 reply: the official PHP virtual machine, Zend Engine, does not use JIT compilation technology.
Why... Although there are many reasons for this, it is purely lazy.
PHP7 is also planning to add the JIT compiler. Added: php. internals: Zend JIT Open Sourced
There are many external attempts to implement the JIT compiler for PHP, such:
LLVM-based http://llvm.org/devmtg/2008-08/Lopes_PHP-JIT-InTwoDays.pdf
HippyVM http://hippyvm.com Based on PyPy/
HappyJIT http://www.ics.uci.edu Based on PyPy /~ Ahomescu/happyjit_paper.pdf
P9 CiteSeerX-Evaluation of a Just-in-Time Compiler using fitted for PHP Based on IBM J9 Testarossa
And so on.
It is said that Facebook has tried to use Java to implement PHP. However, since there is no public news, the project must have been thrown away.
However, the popular PHP implementation with JIT compiler is Facebook's HipHop VM http://www.hhvm.com/
It can always be done without laziness. The latest PHP7 has already used JIT technology. Of course, I don't know why the past version is not used. I don't know if there is a hhvm thing, facebook/hhvm road GitHub. As @ redna xelafx said, in fact, PHP on JVM already exists. Here, jphp-compiler/jphp-GitHub PHP does not currently support JIT, but PHP7 will lay a good foundation for supporting PHP7 in the future, previously, Uncle bird attempted to add JIT in PHP7, but they found that this could not bring the biggest performance improvement to PHP7, it can be seen that the underlying layer of Zend requires a thorough iteration of PHP7, so PHP7 performance is doubled than PHP5.6, and memory usage is reduced by 2/3. However, the current PHP7 still does not support the JIT abstract syntax tree, which is ready for future JIT iterations. We look forward to the JIT PHP7.X.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service