3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n = new ReflectionFunction(); $a = array('Closure','bind'); $a($n,null,null);
based on ZCSZv
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: ReflectionFunction::__construct() expects exactly 1 parameter, 0 given in /in/V1EsE:2 Stack trace: #0 /in/V1EsE(2): ReflectionFunction->__construct() #1 {main} thrown in /in/V1EsE on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.14
Fatal error: Uncaught TypeError: ReflectionFunction::__construct() expects exactly 1 parameter, 0 given in /in/V1EsE:2 Stack trace: #0 /in/V1EsE(2): ReflectionFunction->__construct() #1 {main} thrown in /in/V1EsE on line 2
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Warning: ReflectionFunction::__construct() expects exactly 1 parameter, 0 given in /in/V1EsE on line 2 Warning: Closure::bind() expects parameter 1 to be Closure, object given in /in/V1EsE on line 4
Output for 5.0.0 - 5.3.29
Warning: ReflectionFunction::__construct() expects exactly 1 parameter, 0 given in /in/V1EsE on line 2 Fatal error: Function name must be a string in /in/V1EsE on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/V1EsE on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/V1EsE on line 2