3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a' => 10, 'z' => 10, 'c' => 10, 'b' => 11, 'd' => 10); asort($a); var_dump($a);
Output for 7.0.0 - 7.1.0
array(5) { ["a"]=> int(10) ["z"]=> int(10) ["c"]=> int(10) ["d"]=> int(10) ["b"]=> int(11) }
Output for 4.3.0 - 5.6.28
array(5) { ["d"]=> int(10) ["a"]=> int(10) ["c"]=> int(10) ["z"]=> int(10) ["b"]=> int(11) }