3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { $x = new NonexistantClass(); } catch (Error $e) { var_dump($e->getMessage()); } echo "Don't worry, everything is still fine!\n";
based on ogOCf
Output for 7.0.0 - 7.2.0
string(34) "Class 'NonexistantClass' not found" Don't worry, everything is still fine!
Output for 5.3.21 - 5.6.28
Fatal error: Class 'NonexistantClass' not found in /in/F7edB on line 4
Process exited with code 255.