TypePHP Brings PHP to Native Code
Swoole’s TypePHP compiler translates PHP into C++ and native machine code, producing standalone executables, extensions, or shared libraries. Its fresh v0.6.6 release targets developers who want PHP syntax with ahead-of-time performance.
TypePHP is a compelling bridge between PHP’s productivity and systems-level deployment, though its biggest wins will come in typed, compute-heavy workloads rather than arbitrary Composer applications.
- –Supports binary, extension, and shared-library build modes
- –Self-hosted entirely in PHP, with compiled output eliminating interpreter startup and warm-up
- –Official benchmarks show typed containers approaching C++ performance in numeric workloads
- –Requires PHP 8.4–8.5, C++17 tooling, PHP embed libraries, and careful compatibility checks
- –GPLv3 licensing and native binaries make it interesting for performance-sensitive, source-protected deployments
DISCOVERED
1d ago
2026-08-28
PUBLISHED
1d ago
2026-08-28
RELEVANCE