KPHP Inside VK: What's Going On
summary
An insider look at KPHP, VK’s tool that compiles PHP to C++. Covers the compilation pipeline: code analysis, ASTs, control-flow graphs and type inference, with before-and-after code examples and benchmarks comparing KPHP to standard PHP. Explains KPHP’s current limitations (what it cannot compile), unique features not possible in standard PHP, and discusses challenges around open-sourcing the project.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 3:42KPHP history and growth
- 7:21KPHP compiles PHP to C++
- 16:56KPHP implementation challenges
- 26:54KPHP versus PHP
- 35:18Performance and benefits
- 37:05KPHP open source
- 43:03Q&A








