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; $args = call_user_func_array("array_multisort", $args); var_dump($args);
Output for 4.3.0 - 5.2.17, 5.3.4 - 7.1.0
bool(true)
Output for 5.3.0 - 5.3.3
Warning: Parameter 1 to array_multisort() expected to be a reference, value given in /in/G3svV on line 13 NULL