3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $func = create_function('', 'return 123;'); $ref = new ReflectionFunction($func); $closure = $ref->getClosure(); $func(); $closure();
Output for 7.2.0
Deprecated: Function create_function() is deprecated in /in/runjL on line 3
Output for 5.4.0 - 7.1.10
Output for 5.0.0 - 5.3.29
Fatal error: Call to undefined method ReflectionFunction::getClosure() in /in/runjL on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/runjL on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/runjL on line 4