3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php spl_autoload_register(function($class) { if ('A' == $class) require('/in//Gm7i2'); else require('/in//P3g8J'); var_dump(A::a, A::b, B::c, B::d);
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected end of file in /in/EBVnp on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/EBVnp on line 9
Process exited with code 255.