Compress #PHP applications into one binary : PHP
▻https://www.reddit.com/r/PHP/comments/12e743w/compress_php_applications_into_one_binary
Are we talking about a full-size web app, or a small CLI app?
See ▻https://github.com/dreadnip/static for an example.
TL;DR: you build your app as a #phar (for example with Box), en then prepend it with this: ▻https://github.com/dixyes/phpmicro/blob/master/Readme.EN.md
The result is a #selfexecutable binary.