3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(0 => 0, 1 => 1, 2 => 2); $b = array(0 => 2, 1 => 3, 2 => 4); var_dump(array_unique(array_merge($a, $b)));
Output for 4.3.0 - 7.1.0
array(5) { [0]=> int(0) [1]=> int(1) [2]=> int(2) [4]=> int(3) [5]=> int(4) }