Compress #PHP applications into one binary : PHP
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.