For teaching purposes, I am looking for standalone PHP binaries for Mac, Windows and, possibly Linux.
The plan is to distribute the binary as a single file to students for testing PHP scripts without having to install a full web server. I would expect to be able to use the CLI to do something like this:
# (Mac)
cd php-binary
./php …
# (Win)
cd php-binary
.\php.exe …
In particular I would like to be able to execute:
php -S localhost:8000
I need to ensure that the binary has everything statically installed, so there are no dependencies on external libraries, and no version issues.
The question is, are such binaries freely available? Failing that, can they be readily compiled?