3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1=array("10","1","100"); $a2=array("5","20","2"); array_multisort($a1,SORT_ASC,$a2,SORT_ASC); print_r($a1); print_r($a2); ?>
based on IjmAO
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 1 [1] => 10 [2] => 100 ) Array ( [0] => 20 [1] => 5 [2] => 2 )