3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ary_main = array(0,8,4,7,6,2,4,8); $args[] = array(1,8,3,7,2,2,4,1); $args[] = SORT_ASC; $args[] = array(6,5,3,2,5,7,5,3); $args[] = SORT_DESC; $args[] =& $ary_main; call_user_func_array("array_multisort", $args); foreach($ary_main as $value) { echo $value,"\n"; }
Output for 4.3.0 - 5.2.17, 5.3.4 - 7.1.0
0 8 2 6 4 4 7 8
Output for 5.3.0 - 5.3.3
Warning: Parameter 1 to array_multisort() expected to be a reference, value given in /in/cUCvk on line 13 0 8 4 7 6 2 4 8