3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { throw new Error("Some error message"); } catch(Error $e) { echo $e; }
based on g6HIE
Output for 7.0.0 - 7.2.0
Error: Some error message in /in/YF1bi:4 Stack trace: #0 {main}
Output for 5.3.21 - 5.6.28
Fatal error: Class 'Error' not found in /in/YF1bi on line 4
Process exited with code 255.