3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array( 18 => 30, 10 => 10, 17 => 30 ); asort($array); var_dump($array);
Output for 7.0.0 - 7.2.0
array(3) { [10]=> int(10) [18]=> int(30) [17]=> int(30) }
Output for 5.5.0 - 5.6.28
array(3) { [10]=> int(10) [17]=> int(30) [18]=> int(30) }