3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $your_array = array(0 =>array('codes'=>array(7,4,5)), 1 =>array('codes'=>array(4,45,1))); unction aasort (&$array, $key) { $sorter=array(); $ret=array(); reset($array); foreach ($array as $ii => $va) { $sorter[$ii]=$va[$key]; } asort($sorter); foreach ($sorter as $ii => $va) { $ret[$ii]=$array[$ii]; } $array=$ret; } aasort($your_array,"codes"); var_dump($your_array);
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected 'aasort' (T_STRING) in /in/dNJdq on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/dNJdq on line 5
Process exited with code 255.