3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(class_exists('Error')); var_dump(!is_subclass_of('Error', 'Exception')); $e = new \Error(); var_dump($e instanceof Error);
based on bGn4L
Output for 7.0.0 - 7.2.0
bool(true) bool(true) bool(true)
Output for 5.3.19 - 5.6.28
bool(false) bool(true) Fatal error: Class 'Error' not found in /in/J9G1K on line 5
Process exited with code 255.