elephc 0.27.7 is out: 67 merged PRs, 596 commits since 0.27.6. 🐘
The highlight: write PHP, get a native PHP extension.
elephc --emit phpext compiles your code to a .so:
- #[Export] functions
- final classes, with methods, typed props and constants
- constants via --export-constant
Load it with extension=... and your code checks extension_loaded(): native when it's there, plain PHP when it isn't. No rewrite in C.
PHP compatibility is now at 1053/2169 builtin functions.
A ⭐ on the repo would be much appreciated! https://github.com/illegalstudio/elephc
GitHubGitHub - illegalstudio/elephc: A PHP-to-native compiler. Takes a subset of PHP - including eval() - and compiles it directly to native assembly, producing standalone binaries for macOS ARM64, Linux ARM64, and Linux x86_64. No VM, no external runtime, no dependencies: dynamic eval falls back to an o…A PHP-to-native compiler. Takes a subset of PHP - including eval() - and compiles it directly to native assembly, producing standalone binaries for macOS ARM64, Linux ARM64, and Linux x86_64. No VM...
commit e620e0b