Compile PHP 7 to PHP 5.6
| From: | Jesse Schalken | Date: | Fri, 11 Sep 2015 12:32:17 +0000 |
| Subject: | Compile PHP 7 to PHP 5.6 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-325107@lists.php.net to get a copy of this message | ||
Is anyone aware of a tool for compiling PHP 7 code to PHP 5.6 code (or
earlier)? Many of the features added from 5.3 to 7.0 appear to be syntactic
conveniences which could be "desugared" or compiled to equivalent code for
earlier PHP versions.
I'm thinking on similar lines as Babel enables ecmascript 6 to be compiled
to ecmascript 5.
Thanks