3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $list = array( '01' => 'Z', '02' => 'A', '03' => 'B', '04' => 'C', '05' => 'Y' ); echo "Before sorting:\n"; print_r($list); asort($list); echo "\nAfter sorting:\n"; print_r($list);
Output for 4.3.0 - 7.2.0
Before sorting: Array ( [01] => Z [02] => A [03] => B [04] => C [05] => Y ) After sorting: Array ( [02] => A [03] => B [04] => C [05] => Y [01] => Z )