3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php spl_autoload_register(function ($className) { var_dump($className); }); new DoesNotExist();
Output for 7.0.0 - 7.3.0beta1
string(12) "DoesNotExist" Fatal error: Uncaught Error: Class 'DoesNotExist' not found in /in/nYg6j:7 Stack trace: #0 {main} thrown in /in/nYg6j on line 7
Process exited with code 255.
Output for hhvm-3.22.0
string(12) "DoesNotExist" Fatal error: Uncaught Error: Class undefined: DoesNotExist in /in/nYg6j:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
string(12) "DoesNotExist" Fatal error: Uncaught Error: Class undefined: DoesNotExist in /in/nYg6j:7 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
string(12) "DoesNotExist" Fatal error: Class 'DoesNotExist' not found in /in/nYg6j on line 7
Process exited with code 255.