Open sourceActiveElephc
A PHP-to-native compiler. Standalone binaries, no VM, no runtime.
- platform
- macOS · Linux
- stack
- Rust, native codegen without LLVM
- license
- MIT
- install
- brew install illegalstudio/tap/elephc
Overview
Elephc takes a subset of PHP, including eval(), and compiles it directly to native assembly for macOS ARM64, Linux ARM64 and Linux x86_64. Dynamic eval falls back to an optional statically linked interpreter.
Companion projects compile Laravel and Tempest, and elvm pins a compiler version per project.
What it does
- Single static binary output
- Targets macOS ARM64, Linux ARM64, Linux x86_64
- Optional embedded interpreter for eval()
- elvm version manager with .elephc-version