If your application spends most of its time in dense loops over thousands of entities, with elephc you can work on exactly that hot path using buffer<T>: typed, contiguous storage instead of a PHP array.
On the position updates benchmark, 4000 particles over 40 steps:
60 ms…
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...