3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [1, 2, 5, 4, 5]; $arr = array_unique($arr); var_dump($arr);
based on bXT1p
Output for 5.6.38 - 7.3.0rc3
array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(5) [3]=> int(4) }