3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(); $array['test'][74] = array('a' => 1); $array['test'][71] = array('d' => 2); $array['test'][72] = array('c' => 3); asort($array['test']); print_r($array);
Output for 7.0.0 - 7.1.0
Array ( [test] => Array ( [71] => Array ( [d] => 2 ) [72] => Array ( [c] => 3 ) [74] => Array ( [a] => 1 ) ) )
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
Array ( [test] => Array ( [74] => Array ( [a] => 1 ) [71] => Array ( [d] => 2 ) [72] => Array ( [c] => 3 ) ) )