3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(array(1,2,3),array(2),3); $b = array(array(1,2,3),array(2),3); $f = array(array(2,3,4),array(3),4); $c = array(array_merge($a, $b, $f,34)); $d = array_unique($c); var_dump($d);
based on 7tKjo
Output for 5.0.0 - 7.1.0
Warning: array_merge(): Argument #4 is not an array in /in/9DlUe on line 6 array(1) { [0]=> NULL }
Output for 4.3.0 - 4.4.9
array(1) { [0]=> array(10) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } [1]=> array(1) { [0]=> int(2) } [2]=> int(3) [3]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } [4]=> array(1) { [0]=> int(2) } [5]=> int(3) [6]=> array(3) { [0]=> int(2) [1]=> int(3) [2]=> int(4) } [7]=> array(1) { [0]=> int(3) } [8]=> int(4) [9]=> int(34) } }