3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $reflection = new \ReflectionClass('Foo'); var_dump($reflection);
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught ReflectionException: Class Foo does not exist in /in/ZAMoL:3 Stack trace: #0 /in/ZAMoL(3): ReflectionClass->__construct('Foo') #1 {main} thrown in /in/ZAMoL on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught exception 'ReflectionException' with message 'Class Foo does not exist' in /in/ZAMoL:3 Stack trace: #0 /in/ZAMoL(3): ReflectionClass->__construct() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Uncaught exception 'ReflectionException' with message 'Class Foo does not exist' in /in/ZAMoL:3 Stack trace: #0 /in/ZAMoL(3): ReflectionClass->__construct('Foo') #1 {main} thrown in /in/ZAMoL on line 3
Process exited with code 255.