3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $groups = array(1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0); $gs = array_unique($groups,SORT_REGULAR); print_r(array_unique($groups,SORT_NUMERIC));
based on IetBX
Output for 5.2.9 - 7.2.6
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7] => 8 [8] => 9 [9] => 0 )
Output for 4.3.0 - 5.2.8
Warning: Wrong parameter count for array_unique() in /in/qcZBj on line 5 Warning: Wrong parameter count for array_unique() in /in/qcZBj on line 7