3v4l.org

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