3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( array( 'aaa' => 'AAA' ), array( 'bbb' => 'BBB' ), array( 'ccc' => 'CCC' ), ); $r = array_merge($a, $b); var_dump($r);
based on Oi5TG
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: a in /in/vIrs9 on line 16 Notice: Undefined variable: b in /in/vIrs9 on line 16 Warning: array_merge(): Argument #1 is not an array in /in/vIrs9 on line 16 NULL
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: a in /in/vIrs9 on line 16 Notice: Undefined variable: b in /in/vIrs9 on line 16 Warning: array_merge() expects parameter 1 to be array, null given in /in/vIrs9 on line 16 NULL
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: a in /in/vIrs9 on line 16 Notice: Undefined variable: b in /in/vIrs9 on line 16 Warning: array_merge(): Argument #1 is not an array in /in/vIrs9 on line 16 Warning: array_merge(): Argument #2 is not an array in /in/vIrs9 on line 16 NULL
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: a in /in/vIrs9 on line 16 Notice: Undefined variable: b in /in/vIrs9 on line 16 Warning: array_merge(): Argument #1 is not an array in /in/vIrs9 on line 16 Warning: array_merge(): Argument #2 is not an array in /in/vIrs9 on line 16 NULL
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: a in /in/vIrs9 on line 16 Notice: Undefined variable: b in /in/vIrs9 on line 16 array(0) { }