3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ar1 = array(10, 100, 100, 0); $ar2 = array(1, 3, 2, 4); array_multisort($ar1, $ar2); print_r($ar1); print_r($ar2);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 0 [1] => 10 [2] => 100 [3] => 100 ) Array ( [0] => 4 [1] => 1 [2] => 2 [3] => 3 )