3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(array(1),2,3); $b = array(1,2,3); $f = array(2,3,4); $c = array_merge($a, $b, $f); $d = array_unique(array_merge(array(array("hola" =>1,"como" => 2, "andas" => 3), array("hola" => 2, "bien" => 3, "vos" => 4)))); var_dump($d);
based on EafLL
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/TC1E7 on line 8 Notice: Array to string conversion in /in/TC1E7 on line 8 Notice: Array to string conversion in /in/TC1E7 on line 8 Notice: Array to string conversion in /in/TC1E7 on line 8 array(1) { [0]=> array(3) { ["hola"]=> int(1) ["como"]=> int(2) ["andas"]=> int(3) } }
Output for 4.3.0 - 5.2.8, 5.2.10 - 5.3.29
array(1) { [0]=> array(3) { ["hola"]=> int(1) ["como"]=> int(2) ["andas"]=> int(3) } }
Output for 5.2.9
array(2) { [0]=> array(3) { ["hola"]=> int(1) ["como"]=> int(2) ["andas"]=> int(3) } [1]=> array(3) { ["hola"]=> int(2) ["bien"]=> int(3) ["vos"]=> int(4) } }