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(1,2,3), array(2,3,4)))); var_dump($d);
based on 1WtBQ
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/EafLL on line 8 Notice: Array to string conversion in /in/EafLL on line 8 Notice: Array to string conversion in /in/EafLL on line 8 Notice: Array to string conversion in /in/EafLL on line 8 array(1) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } }
Output for hhvm-3.10.0 - 3.12.0
Notice: Array to string conversion in /in/EafLL on line 8 Notice: Array to string conversion in /in/EafLL on line 8 array(1) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } }
Output for 4.3.0 - 5.2.8, 5.2.10 - 5.3.29
array(1) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } }
Output for 5.2.9
array(2) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } [1]=> array(3) { [0]=> int(2) [1]=> int(3) [2]=> int(4) } }