Skip to content
EntityQ18150679· pop 18· linked from 263 articles

HipHop Virtual Machine

Sign in to save

Also known as HHVM

HipHop Virtual Machine (HHVM) is an open-source virtual machine based on just-in-time (JIT) compilation that serves as an execution engine for the Hack programming language. By using the principle of JIT compilation, Hack code is first transformed into intermediate HipHop bytecode (HHBC), which is then dynamically translated into x86-64 machine code, optimized, and natively executed. This contrasts with PHP's usual interpreted execution, in which the Zend Engine transforms PHP source code into opcodes that serve as a form of bytecode, and executes the opcodes directly on the Zend Engine's virt

Key facts

Software.name
HHVM
Software.logo
HHVM logo.svg
Software.logo size
x64px
Software.logo alt
HHVM logo, featuring white uppercase "HHVM" letters on a black background, with stylized triangular geometric shapes on the left
Software.developer
Meta Platforms
Software.programming language
PHP, C++, OCaml and Rust
Software.license
PHP License and Zend License

via Wikipedia infobox

Source code

HHVM is an open-source virtual machine designed for executing programs written in Hack. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining amazing development flexibility. You can run standalone programs just by passing them to hhvm: hhvm example.hack . If you want to host a website: Install your favorite webserver. Proxygen is built into HHVM, fast and easy to deploy. Install our package Start your webserver Run sudo /etc/init.d/hhvm start Visit your site at Our getting started guide provides a slightly more detailed introduction as well as links to more information. We'd love to have your help in making HHVM better. If you're interested, please read our guide to contributing. HHVM is licensed under the PHP and Zend licenses except as otherwise noted. The Hack typechecker is licensed under the MIT License except as otherwise noted. The Hack Standard Library is licensed under the MIT License except as otherwise noted. Our user FAQ has answers to many common questions about HHVM, from general questions to questions geared towards those that want to use.

Excerpt from the source-code README · 2,887 chars · not written by Vinony

~5 min read

Encyclopedic overview

6 sections
Contents
  • Overview
  • Performance
  • See also
  • Notes
  • References
  • External links

HipHop Virtual Machine (HHVM) is an open-source virtual machine based on just-in-time (JIT) compilation that serves as an execution engine for the Hack programming language. By using the principle of JIT compilation, Hack code is first transformed into intermediate HipHop bytecode (HHBC), which is then dynamically translated into x86-64 machine code, optimized, and natively executed. This contrasts with PHP's usual interpreted execution, in which the Zend Engine transforms PHP source code into opcodes that serve as a form of bytecode, and executes the opcodes directly on the Zend Engine's virtual CPU.

HHVM is developed by Meta, with the project's source code hosted on GitHub; it is licensed under the terms of the PHP License and Zend License.

Excerpted from Wikipedia’s “HipHop Virtual Machine” article, available under the CC BY-SA 4.0 licence.