3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $function = new \reflectionFunction('spl_autoload_unregister'); echo 'Parameters:' . PHP_EOL; foreach ($function->getParameters() as $parameter) { echo '* ' . $parameter->getName() . PHP_EOL; } echo str_repeat('-', 20) . PHP_EOL; echo $function->getNumberOfRequiredParameters() . '/' . $function->getNumberOfParameters() . PHP_EOL;
Output for 5.3.0 - 7.2.0
Parameters: * autoload_function -------------------- 1/1
Output for 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JoALv on line 3 Parameters: -------------------- 0/0
Output for 5.0.3 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JoALv on line 3 Fatal error: Uncaught exception 'ReflectionException' with message 'Function spl_autoload_unregister() does not exist' in /in/JoALv:3 Stack trace: #0 /in/JoALv(3): ReflectionFunction->__construct('spl_autoload_un...') #1 {main} thrown in /in/JoALv on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JoALv on line 3 Fatal error: Uncaught exception 'ReflectionException' with message 'Function spl_autoload_unregister() does not exist' in /in/JoALv:3 Stack trace: #0 {main} thrown in /in/JoALv on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JoALv on line 3 Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/JoALv on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JoALv on line 3 Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/JoALv on line 3