php.jsConsoleViewOnGitHubTweetphp.js-PHPVMwithJavaScriptThislibraryreadsPHPcodeandtransformsitintoJavaScriptcodewhichcanberuninthePHPVMinthislibrary,resultinginsameresultsaswithPHP.ItstartsbytokenizingthePHPcodeintotokens,whichitthenusestobuildanASTtree.Oncethetreehasbeenconstructed,thescriptcompilesitintoJavaScriptthatcanbeinterpretedbytheVMandthenexecutesit...