3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array("array_reduce", "array_diff_uassoc", "array_diff_ukey", "array_udiff", "array_udiff_assoc", "array_intersect_uassoc", "array_intersect_ukey", "array_uintersect", "array_uintersect_assoc", "array_walk", "array_walk_recursive", "iterator_apply", "usort", "uasort", "uksort", "iterator_apply", "array_map", "array_filter", "register_shutdown_function", "filter_var", "filter_var_array", "filter_input", "filter_input_array", "call_user_func", "call_user_func_array", "eval", "assert", "preg_replace", "preg_filter", "create_function", "mb_ereg_replace", "mb_eregi_replace",); /* function show_all($keys){ global $result; foreach ($keys as $key) { if(is_array($key)) show_all($key); else{ $refFunc = new ReflectionFunction($key); foreach( $refFunc->getParameters() as $param ){ if(preg_match('/callback/',$param->name)) $result[$key] = 1; } } } } show_all(get_defined_functions()); */ foreach (array_keys($result) as $key) { print "$key:\n"; $refFunc = new ReflectionFunction($key); foreach( $refFunc->getParameters() as $param ){ print "\t$param\n"; } } ?>
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
0: Fatal error: Uncaught ReflectionException: Function 0() does not exist in /in/8ESjj:56 Stack trace: #0 /in/8ESjj(56): ReflectionFunction->__construct('0') #1 {main} thrown in /in/8ESjj on line 56
Process exited with code 255.
Output for 5.0.3 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
0: Fatal error: Uncaught exception 'ReflectionException' with message 'Function 0() does not exist' in /in/8ESjj:56 Stack trace: #0 /in/8ESjj(56): ReflectionFunction->__construct('0') #1 {main} thrown in /in/8ESjj on line 56
Process exited with code 255.
Output for 5.0.0 - 5.0.2
0: Fatal error: Uncaught exception 'ReflectionException' with message 'Function 0() does not exist' in /in/8ESjj:56 Stack trace: #0 {main} thrown in /in/8ESjj on line 56
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
0: Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/8ESjj on line 56
Process exited with code 255.
Output for 4.3.0 - 4.3.1
0: Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/8ESjj on line 56

preferences:
246.42 ms | 401 KiB | 344 Q