3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array("1" => "C", "2" => "B", "3" => "A"); print_r($arr); usort($arr); print_r($arr);
Output for 5.3.0 - 7.1.0
Array ( [1] => C [2] => B [3] => A ) Warning: usort() expects exactly 2 parameters, 1 given in /in/t8T3J on line 7 Array ( [1] => C [2] => B [3] => A )
Output for 4.3.0 - 5.2.17
Array ( [1] => C [2] => B [3] => A ) Warning: Wrong parameter count for usort() in /in/t8T3J on line 7 Array ( [1] => C [2] => B [3] => A )