3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a { function __construct() { echo 'hi'; } } ReflectionFunction::export('php');
based on Ukp2I
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught ReflectionException: Function php() does not exist in /in/ng1r4:8 Stack trace: #0 [internal function]: ReflectionFunction->__construct('php') #1 /in/ng1r4(8): ReflectionFunction::export('php') #2 {main} thrown in /in/ng1r4 on line 8
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Uncaught exception 'ReflectionException' with message 'Function php does not exist' in /in/ng1r4:8 Stack trace: #0 /in/ng1r4(8): ReflectionFunction::export() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.1.3 - 5.6.28
Fatal error: Uncaught exception 'ReflectionException' with message 'Function php() does not exist' in /in/ng1r4:8 Stack trace: #0 [internal function]: ReflectionFunction->__construct('php') #1 /in/ng1r4(8): ReflectionFunction::export('php') #2 {main} thrown in /in/ng1r4 on line 8
Process exited with code 255.
Output for 5.0.5 - 5.1.2
Fatal error: Uncaught exception 'ReflectionException' with message 'Function php() does not exist' in /in/ng1r4:8 Stack trace: #0 [internal function]: ReflectionFunction::__construct('php') #1 /in/ng1r4(8): ReflectionFunction::export('php') #2 {main} thrown in /in/ng1r4 on line 8
Process exited with code 255.
Output for 5.0.3 - 5.0.4
Fatal error: Uncaught exception 'ReflectionException' with message 'Function php() does not exist' in /in/ng1r4:8 Stack trace: #0 /in/ng1r4(8): ReflectionFunction::__construct('php') #1 /in/ng1r4(8): ReflectionFunction::export('php') #2 {main} thrown in /in/ng1r4 on line 8
Process exited with code 255.
Output for 5.0.0 - 5.0.2
Fatal error: Uncaught exception 'ReflectionException' with message 'Function php() does not exist' in /in/ng1r4:8 Stack trace: #0 /in/ng1r4(8): ReflectionFunction::export('php') #1 {main} thrown in /in/ng1r4 on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'reflectionfunction' in /in/ng1r4 on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'reflectionfunction' in /in/ng1r4 on line 8