3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_unique(array(14, 21, 3, 4, 6, 14, 15, 17, 21, 22, 23, 24), SORT_NUMERIC));
Output for 5.2.9 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(10) { [0]=> int(14) [1]=> int(21) [2]=> int(3) [3]=> int(4) [4]=> int(6) [6]=> int(15) [7]=> int(17) [9]=> int(22) [10]=> int(23) [11]=> int(24) }
Output for 4.3.0 - 5.2.8
Warning: Wrong parameter count for array_unique() in /in/VX6gX on line 3 NULL