3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr1 = array(1,9,5,9); $arr2 = array(6,2,4,1); $arr3 = array(3,7,8,0); array_multisort($arr1,$arr2,$arr3); print_r($arr1); print_r($arr2); print_r($arr3);
based on GNMgk
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 1 [1] => 5 [2] => 9 [3] => 9 ) Array ( [0] => 6 [1] => 4 [2] => 1 [3] => 2 ) Array ( [0] => 3 [1] => 8 [2] => 0 [3] => 7 )