3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array( '11' => 'Z', '12' => 'A', '13' => 'B', '09' => 'C', '15' => 'Y' ); echo "Before sorting:\n"; print_r($list); asort($list); echo "\nAfter sorting:\n"; print_r($list);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Before sorting: Array ( [11] => Z [12] => A [13] => B [09] => C [15] => Y ) After sorting: Array ( [12] => A [13] => B [09] => C [15] => Y [11] => Z )