Is there a converter to convert PHP code from a higher version (e.g. dropdown-select PHP 5.7) to a lower version (e.g. dropdown-select PHP 5.2)?
This would extremely useful for compatibility with existing legacy systems. It must be able to convert PHP 5.3's anonymous functions into the equivalent PHP 5.2's string-based versions using
create_function. (Indeed that's the only feature I need actually.)
Of course, support for the additional features would be great too, e.g.:
PHP 5.6's argument unpacking.
A standalone converter (runnable at least on Windows) would be sufficient, though preferably an option to plugin-integrate with Notepad++ and possibly PHP Storm. (E.g. whenever I save a file e.g.
my_file.php.pre, it would automatically do the conversions and output