Pace - PHP to JavaScript Compiler

PHP to JavaScript compiler by Wolfgang Stengel. Compilation is server-side using a parser and compiler written in PHP. Output is pure vanilla JavaScript. Executing in a browser requires a static runtime library (~50 K minified and compressed). Implements all PHP features up to PHP 5.6 except file system, traits and generators.



Compiled JavaScript

(Open the browser's JS console to see echo output.)