3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$arr = array(); for ($i=100;$i<105;$i++) { $arr[] = array($i => $i-10); } print_r($arr); // Standard asort asort($arr); print_r($arr);
based on SZLv5
Output for 7.0.0 - 7.1.0
Array ( [0] => Array ( [100] => 90 ) [1] => Array ( [101] => 91 ) [2] => Array ( [102] => 92 ) [3] => Array ( [103] => 93 ) [4] => Array ( [104] => 94 ) ) Array ( [4] => Array ( [104] => 94 ) [3] => Array ( [103] => 93 ) [1] => Array ( [101] => 91 ) [2] => Array ( [102] => 92 ) [0] => Array ( [100] => 90 ) )
Output for hhvm-3.10.0 - 3.12.0
Array ( [0] => Array ( [100] => 90 ) [1] => Array ( [101] => 91 ) [2] => Array ( [102] => 92 ) [3] => Array ( [103] => 93 ) [4] => Array ( [104] => 94 ) ) Array ( [0] => Array ( [100] => 90 ) [1] => Array ( [101] => 91 ) [2] => Array ( [102] => 92 ) [3] => Array ( [103] => 93 ) [4] => Array ( [104] => 94 ) )
Output for 4.3.0 - 5.6.28
Array ( [0] => Array ( [100] => 90 ) [1] => Array ( [101] => 91 ) [2] => Array ( [102] => 92 ) [3] => Array ( [103] => 93 ) [4] => Array ( [104] => 94 ) ) Array ( [3] => Array ( [103] => 93 ) [1] => Array ( [101] => 91 ) [0] => Array ( [100] => 90 ) [2] => Array ( [102] => 92 ) [4] => Array ( [104] => 94 ) )