Note
PXP is no longer under active development. Its author announced the end of the project in March 2025 and archived the repository.
PXP is a project that adds syntax on top of PHP and compiles the result to PHP. Tyhp is also a superset of the PHP language that compiles to PHP. The two differ in scope, approach, and focus.
PXP is no longer under active development. Its author announced the end of the project in March 2025 and archived the repository.
PXP (pxp-lang) is an open-source project that provides a Rust-based parser and compiler for an extended PHP syntax. It began as a high-performance PHP parser and has grown into a language project that adds features like generics to PHP. PXP's tooling infrastructure — parser, AST, and formatter — is written in Rust, giving it strong performance characteristics for parsing and analysis.
tyhp lint), a language server (tyhp language_server), and sourcemap debugging (build.generateSourcemap with tyhp xdebug_proxy).PXP's Rust-based parser is aimed at PHP-adjacent tooling. Tyhp is a language with a type checker, compiler pipeline, runtime packages, and development tools. Both compile to PHP.