http://hhvm.com/
https://github.com/xgqfrms/hhvm
什么是HHVM高性能服务器?
HHVM是由Facebook公司出品的高性能开源服务器,用来执行hack编程语言或者php编程语言。
HHVM借由将 PHP 程式码编译为字节码 ,使其可运行于虚拟机器的环境,也可以利用客制的机器码。当前Facebook的PHP程式皆运行在HHVM上。
HHVM runs much of the world’s existing PHP. Developers and hosts are adopting HHVM. We are aware of minor incompatibilities (please open issues when you find them), but we can run the top 20 Github PHP frameworks out of the box. The HHVM team, along with many wonderful community members, has made it a stated, high priority goal to run all existing PHP code existing out in the wild.
The JIT Compiler
Rather than directly interpret or compile PHP code directly to C++, HHVM compiles Hack and PHP into an intermediate bytecode. This bytecode is then translated into x64 machine code dynamically at runtime by a just-in-time (JIT) compiler. This compilation process allows for all sorts of optimizations that cannot be made in a statically compiled binary, thus enabling higher performance of your Hack and PHP programs.
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx