3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new ReflectionMethod('phpinfo'); echo $a;
based on vB0Tb
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught ReflectionException: Invalid method name phpinfo in /in/Tout0:3 Stack trace: #0 /in/Tout0(3): ReflectionMethod->__construct('phpinfo') #1 {main} thrown in /in/Tout0 on line 3
Process exited with code 255.
Output for 5.2.0 - 5.6.28
Fatal error: Uncaught exception 'ReflectionException' with message 'Invalid method name phpinfo' in /in/Tout0:3 Stack trace: #0 /in/Tout0(3): ReflectionMethod->__construct('phpinfo') #1 {main} thrown in /in/Tout0 on line 3
Process exited with code 255.
Output for 5.1.2 - 5.1.6
Fatal error: Internal error: Failed to retrieve the reflection object in /in/Tout0 on line 4
Process exited with code 255.
Output for 5.0.0 - 5.1.1
Warning: ReflectionMethod::__construct() expects exactly 2 parameters, 1 given in /in/Tout0 on line 3 Fatal error: Internal error: Failed to retrieve the reflection object in /in/Tout0 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionmethod in /in/Tout0 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionmethod in /in/Tout0 on line 3