php-transpiler
php-transpiler copied to clipboard
Inlining Include and Require does not act on files that do not declare anything
Example:
for($i=0; $i < 1000000; $i++){
include 'child.php';
}
child.php
<?php
'a' . 'b';
=> child.php should be inlined! So long as it does not contain any declarations or includes files that do this is a safe optimization imo.