Saturday, December 10th, 2011

HipHop Virtual Machine for PHP

Category: PHP

Facebook Software Engineer and HipHop for PHP team member Jason Evans provides details on Facebook’s move to a new high-performance PHP virtual machine. Described by Evans is ”a new PHP execution engine based on the HipHop language runtime that we call the HipHop Virtual Machine (hhvm).” He sees it as replacement for the HipHop PHP interpreter (hphpi). He continues:

We have long been keenly aware of the limitations to static analysis imposed by such a dynamic language as PHP, not to mention the risks inherent in developing software with hphpi and deploying with hphpc. Our experiences with hphpc led us to start experimenting with dynamic translation to native machine code, also known as just-in-time (JIT) compilation … we developed a high-level stack-based virtual machine specifically tailored to PHP that executes HipHop bytecode (HHBC). hhvm uses hphpc’s PHP>AST implementation and extends the pipeline to PHP>AST>HHBC.

He estimates the hhvm bytecode interpreter is approximately 1.6X faster for certain Facebook-specific benchmarks, with still better performance in the offing. But, as described in his blog post on the PHP compilation innovations, there is still work ahead. You can view HipHop-related information at GitHub.

Posted by jvaughan at 9:15 pm

3.2 rating from 263 votes


Comments feed

That’s the path for Facebook to survive; Big companies don’t only become users of the technology. They make new technologies, so that others can use it.

Comment by saeedneamati — December 11, 2011

Would this also work for hosting a Magento e-commerce solution?

Comment by robversluis — December 16, 2011

WOW thats awesome, will that provide any security block like JVM?

Comment by Intellectsolve2502 — April 18, 2012

Nice, but I prefer denwer for instance

Comment by pratamishus — May 17, 2012

Leave a comment

You must be logged in to post a comment.