3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo ($arrays) { return array_merge($arrays); } $func = 'foo'; $input = Array( Array ( 'd1' => 'P', 'd2' => '', 'd3' => '' ), Array ( 'd1' => '', 'd2' => 'A', 'd3' => 'P' ) ); $result = call_user_func_array($func, $input); var_export($result);
based on CVMfp
Output for 5.6.38 - 7.3.0rc3
array ( 'd1' => 'P', 'd2' => '', 'd3' => '', )