3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( '0' => 1, '2' => 2, '1' => 3); print_r($array); $array = array_values($array); print_r($array);
Output for 4.3.0 - 7.1.0
Array ( [0] => 1 [2] => 2 [1] => 3 ) Array ( [0] => 1 [1] => 2 [2] => 3 )