3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1=array("10","1","100"); $a2=array("5","20","2"); array_multisort($a1,SORT_ASC,$a2,SORT_DESC); print_r($a1); print_r($a2); ?>
based on sG8UU
Output for 4.3.0 - 7.2.0
Array ( [0] => 1 [1] => 10 [2] => 100 ) Array ( [0] => 20 [1] => 5 [2] => 2 )