3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sample[0] = array("abc", 32); $sample[1] = array("def", 11); $sample[2] = array("hij", 76); $sample[3] = array("klm", 9); $sample[4] = array("nop", 12); print_r($sample); array_multisort($sample, SORT_NUMERIC); echo '<br />'; print_r($sample);
Output for 7.1.0
Array ( [0] => Array ( [0] => abc [1] => 32 ) [1] => Array ( [0] => def [1] => 11 ) [2] => Array ( [0] => hij [1] => 76 ) [3] => Array ( [0] => klm [1] => 9 ) [4] => Array ( [0] => nop [1] => 12 ) ) <br />Array ( [0] => Array ( [0] => abc [1] => 32 ) [1] => Array ( [0] => def [1] => 11 ) [2] => Array ( [0] => hij [1] => 76 ) [3] => Array ( [0] => klm [1] => 9 ) [4] => Array ( [0] => nop [1] => 12 ) )
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
Array ( [0] => Array ( [0] => abc [1] => 32 ) [1] => Array ( [0] => def [1] => 11 ) [2] => Array ( [0] => hij [1] => 76 ) [3] => Array ( [0] => klm [1] => 9 ) [4] => Array ( [0] => nop [1] => 12 ) ) <br />Array ( [0] => Array ( [0] => nop [1] => 12 ) [1] => Array ( [0] => klm [1] => 9 ) [2] => Array ( [0] => hij [1] => 76 ) [3] => Array ( [0] => def [1] => 11 ) [4] => Array ( [0] => abc [1] => 32 ) )