Hacker News new | ask | show | jobs
by tyingq 3269 days ago
This doesn't appear to support the PHP built in functions, and is more of a tongue in cheek exercise.

Someone did take roughly the approach you're describing. A VM in JavaScript that groks php bytecode: https://github.com/niklasvh/php.js