3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(); $array['test'][74] = '11111'; $array['test'][71] = '1123'; $array['test'][72] = '114444'; usort($array['test']); print_r($array);
Output for 5.3.0 - 7.1.0
Warning: usort() expects exactly 2 parameters, 1 given in /in/2rnRv on line 10 Array ( [test] => Array ( [74] => 11111 [71] => 1123 [72] => 114444 ) )
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for usort() in /in/2rnRv on line 10 Array ( [test] => Array ( [74] => 11111 [71] => 1123 [72] => 114444 ) )