HHVM: the alternative PHP Runtime
summary
Explains how Facebook replaced PHP with HipHop tools: a C++ transformer (hphpc) that converted 880,000 lines to C++ in under a second but then took hours to compile and produced multi‑GB binaries, and an interpreter (hphpi) that led to the HipHop Virtual Machine with typed SSA IR and JIT compiling hot code to machine code. Claims production results: roughly 50% CPU reduction versus Apache+PHP (2x throughput for Facebook), up to 80% less memory in some tests, and adds a new language (Hack) with gradual static typing to catch errors earlier.
AI-written summary · about
chapters (16)
- 0:00Intro
- 4:13Forms Interpreter
- 6:56Zend Engine 0.5)
- 7:37Zend Engine 1.0)
- 8:07Zend Engine 2.0)
- 15:54Facebook starts work on "HipHop for PHP"
- 26:36Facebook open-sourced the solution
- 29:40Facebook uses HPHPc in production
- 32:11Abstract Syntax Tree
- 34:32Type Inference
- 36:04HipHop Bytecode (HHBC)
- 38:03Just-in-Time Compilation
- 38:50Native Machine Code
- 42:20Framework Parity
- 43:20Facebook open-sources Hack
- 44:47Collaboration with the PHP Project








