3v4l.org

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