3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a= get_class(new errorexceptION); echo $level = strtolower(preg_replace('/([A-Z])/', ' $1', get_class($e))); echo PHP_EOL; echo $level = preg_replace('/(?<=\\w)(?=[A-Z])/'," $1", get_class($e));
Output for 5.3.0, 7.2.0 - 7.3.0rc4
Notice: Undefined variable: e in /in/jW7j9 on line 4 Warning: get_class() expects parameter 1 to be object, null given in /in/jW7j9 on line 4 Notice: Undefined variable: e in /in/jW7j9 on line 8 Warning: get_class() expects parameter 1 to be object, null given in /in/jW7j9 on line 8
Output for 5.3.1 - 7.1.20
Notice: Undefined variable: e in /in/jW7j9 on line 4 Warning: get_class() called without object from outside a class in /in/jW7j9 on line 4 Notice: Undefined variable: e in /in/jW7j9 on line 8 Warning: get_class() called without object from outside a class in /in/jW7j9 on line 8
Output for 5.1.0 - 5.2.17
Notice: Undefined variable: e in /in/jW7j9 on line 4 Notice: Undefined variable: e in /in/jW7j9 on line 8
Output for 5.0.0 - 5.0.5
Fatal error: Class 'errorexceptION' not found in /in/jW7j9 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: errorexception in /in/jW7j9 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: errorexception in /in/jW7j9 on line 2