3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $class = new ReflectionClass('EngineException'); echo $class->getParentClass(); function f($a){ $a->method(); } try { // oops! } catch (EngineException $e) { echo "Exception: {$e->getMessage()}\n"; }
based on OdOCC
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught ReflectionException: Class EngineException does not exist in /in/nt5Ls:3 Stack trace: #0 /in/nt5Ls(3): ReflectionClass->__construct('EngineException') #1 {main} thrown in /in/nt5Ls on line 3
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Uncaught exception 'ReflectionException' with message 'Class EngineException does not exist' in /in/nt5Ls:3 Stack trace: #0 /in/nt5Ls(3): ReflectionClass->__construct('EngineException') #1 {main} thrown in /in/nt5Ls on line 3
Process exited with code 255.