IR JIT Framework: the base for the next generation of JIT in PHP
summary
Describes an IR-based JIT framework being developed for PHP-9: PHP will emit an intermediate representation (IR) and a separate language-agnostic library will handle optimizations, register allocation and machine-code generation (an LLVM-like JIT backend specialized for runtime compilation). Presents the open-source project (https://github.com/dstogov/ir), explains motivations from limitations of PHP‑8.0’s function and tracing JITs, and notes similarities to Java HotSpot C2 and V8 TurboFan design.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 2:03PHP optimization history
- 6:36Current JIT problems
- 7:20New JIT framework
- 9:30New compiler principles
- 16:56SSA graph creation
- 23:55Global code optimizations
- 27:10Native code generation
- 35:51Project results and plans
- 37:20Q&A








