This is cool. I wonder if anyone has compiled the php interpreter via emscripten?
Another option might be compiling HPHPc, which I dockerized a few years back: https://github.com/allanlw/hphpc-docker
Another option might be compiling HPHPc, which I dockerized a few years back: https://github.com/allanlw/hphpc-docker
But to answer your question, there's no fundamental difference between interpreted and compiled languages. If the program you want to compile doesn't use `eval`, and you can statically determine all the files it would include, why couldn't you compile it without including an interpreter?