Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. PHP
  3. HHVM

HHVM

NOASSERTIONC++HHVM-3.15.0

A high-performance virtual machine with JIT compilation for executing programs written in Hack.

Visit WebsiteGitHubGitHub
18.6k stars3.1k forks0 contributors

What is HHVM?

HHVM is an open-source virtual machine that executes programs written in Hack, a gradually typed programming language developed by Facebook. It uses just-in-time (JIT) compilation to optimize performance, making it suitable for high-demand server-side applications. HHVM can run standalone programs or serve web applications via built-in Proxygen or FastCGI-compatible web servers.

Target Audience

Developers building server-side applications with Hack, particularly those focused on performance optimization and type-safe programming in Facebook's ecosystem.

Value Proposition

HHVM offers superior performance through JIT compilation while providing a robust runtime for Hack's advanced type system. It is the official runtime for Hack, ensuring compatibility and optimized execution for Facebook's programming language.

Overview

A virtual machine for executing programs written in Hack.

Use Cases

Best For

  • Running high-performance Hack applications in production
  • Serving web applications with built-in Proxygen server
  • Executing standalone Hack scripts from the command line
  • Deploying Hack apps with nginx or Apache via FastCGI
  • Optimizing server-side code with JIT compilation
  • Developing type-safe applications with Hack language features

Not Ideal For

  • Projects not using the Hack programming language, as HHVM is optimized specifically for Hack and may lack full compatibility with other languages like PHP.
  • Teams requiring out-of-the-box PHP compatibility without the overhead of a Hack-focused runtime, where traditional solutions like PHP-FPM are more straightforward.
  • Simple static websites or low-traffic applications where the performance benefits of JIT compilation do not justify the setup and resource overhead.
  • Environments with strict resource constraints or short-lived processes, as HHVM's JIT startup latency and memory usage might be prohibitive.

Pros & Cons

Pros

High-Performance JIT

Dynamically compiles Hack code to native machine code at runtime, delivering superior performance for server-side applications as emphasized in the README's description of JIT compilation.

Built-in Proxygen Server

Includes a fast and easy-to-deploy web server, simplifying hosting for Hack applications without external dependencies, as highlighted in the basic usage guide.

Standalone Execution

Allows running Hack programs directly from the command line with simple commands like `hhvm example.hack`, facilitating development and testing workflows as shown in the running instructions.

Optimized for Hack

Specifically designed to support Hack's type system and features, ensuring compatibility and efficient execution, which is core to its value proposition as the runtime for Facebook's programming language.

Cons

Limited Language Support

Primarily focused on Hack, making it less versatile for projects that need to run PHP or other languages without additional configuration or potential compatibility issues.

Complex Integration

Setting up HHVM with traditional web servers like Apache or nginx requires FastCGI configuration and package management, which can be more involved than using the built-in Proxygen, as noted in the installation steps.

Niche Ecosystem

The Hack language and HHVM have a smaller community compared to mainstream alternatives, potentially limiting third-party libraries, support resources, and adoption outside Facebook's ecosystem.

JIT Startup Overhead

The just-in-time compilation introduces initial latency and memory overhead, which might not be suitable for applications with frequent restarts or in resource-constrained environments, a common trade-off with JIT systems.

Frequently Asked Questions

Quick Stats

Stars18,613
Forks3,075
Contributors0
Open Issues409
Last commit2 days ago
CreatedSince 2010

Tags

#facebook-open-source#web-server#server-side#jit-compilation#performance-optimization#hack#virtual-machine#php

Links & Resources

Website

Included in

PHP32.5k
Auto-fetched 1 day ago

Related Projects

PeachPiePeachPie

PeachPie - the PHP compiler and runtime for .NET and .NET Core

Stars2,476
Forks212
Last commit3 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub