VKCOM/kphp
KPHP — a PHP compiler observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2123
- days_rel: n/a
- days_push: 7
- n_releases_24m: 0
Adoption not part of the score
1523 stars · 116 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
KPHP is a PHP compiler developed at VK.com that compiles a limited subset of PHP to C++ and then to a native binary running faster than plain PHP. It performs static type inference and compile-time optimizations, and runs the compiled code within an embedded HTTP server.
Use cases
- compile PHP code to a fast native binary
- speed up PHP backend code by 3-10x
- add static type checking to a PHP codebase
- run PHP-like code without a PHP runtime or JIT
- build high-performance web services with PHP syntax
When to choose
- you have performance-critical PHP code and are willing to adapt it to a strict type system
- you want compile-time type safety and optimizations for PHP-style code
- you are building a new backend service and prefer PHP syntax with native speed
When to avoid
- you need to compile arbitrary existing PHP code without modifications
- you rely on unsupported PHP features like generators, anonymous classes, SPL, or XML parsing
- you need dynamic PHP features such as calling by name or mocks
Facets
cli-tool · maturity active
compiler http-server web-framework compilers programming-languages web-development backend performance cpp cli php transpiler static-typing type-inference native-binary vk compiler linux macos
2 sources
- readme: https://github.com/VKCOM/kphp · fetched 2026-08-28 · b6f413e03a98
- homepage: https://vkcom.github.io/kphp/ · fetched 2026-08-29 · 84a273c295c2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| VKCOM/kphp | main | 77 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem