I’ve been working on a new tool that takes any PHP console application and compiles it into a single static binary. The binary embeds the PHP runtime so the user doesn’t need to have PHP installed. It’s basically the PHP version of nexe.
This example is a POC of packaging the code together with a pre-compiled base binary. If we do this you will be able to quickly package your application without having to wait for compilation and you don’t even need a C compiler. All you need is a regular installation of PHP.