php-transpiler
php-transpiler copied to clipboard
Transpiles PHP code into logically equivalent, performance optimized PHP code
Currently code is there to identify functions that are nothing but getters. using this to remove getter calls by making the variable that is retrieved public instead + turning the...
Example: ``` for($i=0; $i < 1000000; $i++){ include 'child.php'; } ``` child.php ```
Checks like ``` php if(strlen($string) > 5) ``` can be optimized into a faster isset like ``` php if(isset($string[5])) ``` This can easily be implemented. It needs a check to...
Currently even if a file is inlined there is no check and action preset actually removing it once not used anywhere anymore.
In the title, inheritance is not acknowledged so far :/