3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $slice = [[3,2,54,6,2,5,23,3], [2,23,52,23,3465,235,235]]; foreach ($slice as $col) { array_multisort($col); $slicesort[] = $col; } print_r($slicesort); foreach ($slice as &$col) { sort($col); } print_r($slice);
Output for 5.6.0 - 7.3.0beta1
Array ( [0] => Array ( [0] => 2 [1] => 2 [2] => 3 [3] => 3 [4] => 5 [5] => 6 [6] => 23 [7] => 54 ) [1] => Array ( [0] => 2 [1] => 23 [2] => 23 [3] => 52 [4] => 235 [5] => 235 [6] => 3465 ) ) Array ( [0] => Array ( [0] => 2 [1] => 2 [2] => 3 [3] => 3 [4] => 5 [5] => 6 [6] => 23 [7] => 54 ) [1] => Array ( [0] => 2 [1] => 23 [2] => 23 [3] => 52 [4] => 235 [5] => 235 [6] => 3465 ) )