3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php spl_autoload_register('var_dump'); $foo = '../../foo'; new $foo();
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class '../../foo' not found in /in/Sq4Kd:4 Stack trace: #0 {main} thrown in /in/Sq4Kd on line 4
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Class undefined: ../../foo in /in/Sq4Kd on line 4
Process exited with code 255.
Output for 5.4.24 - 5.4.45, 5.5.8 - 5.6.28
Fatal error: Class '../../foo' not found in /in/Sq4Kd on line 4
Process exited with code 255.
Output for 5.2.3 - 5.4.23, 5.5.0 - 5.5.7
string(9) "../../foo" Fatal error: Class '../../foo' not found in /in/Sq4Kd on line 4
Process exited with code 255.
Output for 5.1.0 - 5.2.2
string(9) "../../foo" <br /> <b>Fatal error</b>: Class '../../foo' not found in <b>/in/Sq4Kd</b> on line <b>4</b><br />
Process exited with code 255.
Output for 5.0.0 - 5.0.5
<br /> <b>Fatal error</b>: Call to undefined function spl_autoload_register() in <b>/in/Sq4Kd</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: spl_autoload_register() in <b>/in/Sq4Kd</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: spl_autoload_register() in <b>/in/Sq4Kd</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: spl_autoload_register() in <b>/in/Sq4Kd</b> on line <b>2</b><br />