3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = array('array_uintersect_uassoc' => 1); /* 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 5.2.0 - 7.1.0
array_uintersect_uassoc: Parameter #0 [ <required> $arr1 ] Parameter #1 [ <required> $arr2 ] Parameter #2 [ <required> $callback_data_compare_func ] Parameter #3 [ <required> $callback_key_compare_func ]
Output for 5.0.0 - 5.1.6
array_uintersect_uassoc:
Output for 4.3.2 - 4.4.9
array_uintersect_uassoc: Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/5kfel on line 25
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array_uintersect_uassoc: Fatal error: Cannot instantiate non-existent class: reflectionfunction in /in/5kfel on line 25