3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array( 0 => '801', 2 => '801', 4 => '801', 5 => '802'); $array = array_unique($array); $myArray = array_values($array); var_dump($myArray);
based on Bq4Ao
Output for 5.3.18 - 7.2.0
array(2) { [0]=> string(3) "801" [1]=> string(3) "802" }