3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 'pippo', 'franco', 'marco' => 'polo', 'ciao' ); print_r($array); reset($array); ksort($array, SORT_NUMERIC); reset($array); print_r($array);
Output for 4.3.0 - 7.1.0
Array ( [0] => pippo [1] => franco [marco] => polo [2] => ciao ) Array ( [0] => pippo [marco] => polo [1] => franco [2] => ciao )