3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ar1 = array(10, 100, 100, 0); $ar2 = array(1, 3, 2, 4); array_multisort($ar1, SORT_ASC, SORT_STRING, $ar2, SORT_ASC, SORT_STRING); print_r($ar1); print_r($ar2);
Output for 4.3.0 - 7.2.6
Array ( [0] => 0 [1] => 10 [2] => 100 [3] => 100 ) Array ( [0] => 4 [1] => 1 [2] => 2 [3] => 3 )