3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $previous = new Error(); new Exception('', 0, $previous);
Output for hhvm-3.11.1 - 3.22.0, 7.0.0 - 7.3.2
Output for hhvm-3.10.1
Fatal error: Class undefined: Error in /in/U2B1v on line 3
Process exited with code 255.
Output for 5.0.0 - 5.6.38
Fatal error: Class 'Error' not found in /in/U2B1v on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: error in /in/U2B1v on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: error in /in/U2B1v on line 3