3v4l.org

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