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 4.3.0 - 7.1.0
Warning: asort() expects parameter 1 to be array, null given in /in/X3rdL on line 10 Array ( [test] => Array ( [74] => Array ( [a] => 1 ) [71] => Array ( [d] => 2 ) [72] => Array ( [c] => 3 ) [75] => ) )