3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr=array( 'key1'=>'value1', 'key2'=>'value2', 0=>array( 'sub1_key1'=>'sub1_value1', 'sub1_key2'=>'sub1_value2', ), 'key3'=>array( 'sub2_key1'=>'sub2_value1', 'sub2_key2'=>'sub2_value2', ), ); $result = call_user_func_array('array_merge', $arr); print_r($results);
Output for 5.3.0 - 7.1.0
Warning: array_merge(): Argument #1 is not an array in /in/ieHUF on line 17 Notice: Undefined variable: results in /in/ieHUF on line 18
Output for 5.0.4 - 5.2.17
Warning: array_merge(): Argument #1 is not an array in /in/ieHUF on line 17 Warning: array_merge(): Argument #2 is not an array in /in/ieHUF on line 17 Notice: Undefined variable: results in /in/ieHUF on line 18
Output for 5.0.0 - 5.0.3
Warning: array_merge(): Argument #1 is not an array in /in/ieHUF on line 17 Warning: array_merge(): Argument #2 is not an array in /in/ieHUF on line 17 Notice: Undefined variable: results in /in/ieHUF on line 18
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: results in /in/ieHUF on line 18