3v4l.org

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