3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_fill_keys( range(0, 10), range(0, 105, 7) ); array_walk($array, sort(...)); var_export($array);
Output for 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1
array ( 0 => array ( 0 => 0, 1 => 7, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 70, 11 => 77, 12 => 84, 13 => 91, 14 => 98, 15 => 105, ), 1 => array ( 0 => 0, 1 => 7, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 70, 11 => 77, 12 => 84, 13 => 91, 14 => 98, 15 => 105, ), 2 => array ( 0 => 0, 1 => 105, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 7, 11 => 70, 12 => 77, 13 => 84, 14 => 91, 15 => 98, ), 3 => array ( 0 => 0, 1 => 7, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 70, 11 => 77, 12 => 84, 13 => 91, 14 => 98, 15 => 105, ), 4 => array ( 0 => 0, 1 => 7, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 70, 11 => 77, 12 => 84, 13 => 91, 14 => 98, 15 => 105, ), 5 => array ( 0 => 0, 1 => 105, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 7, 11 => 70, 12 => 77, 13 => 84, 14 => 91, 15 => 98, ), 6 => array ( 0 => 0, 1 => 7, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 70, 11 => 77, 12 => 84, 13 => 91, 14 => 98, 15 => 105, ), 7 => array ( 0 => 0, 1 => 7, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 70, 11 => 77, 12 => 84, 13 => 91, 14 => 98, 15 => 105, ), 8 => array ( 0 => 0, 1 => 7, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 70, 11 => 77, 12 => 84, 13 => 91, 14 => 98, 15 => 105, ), 9 => array ( 0 => 0, 1 => 7, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 70, 11 => 77, 12 => 84, 13 => 91, 14 => 98, 15 => 105, ), 10 => array ( 0 => 0, 1 => 105, 2 => 14, 3 => 21, 4 => 28, 5 => 35, 6 => 42, 7 => 49, 8 => 56, 9 => 63, 10 => 7, 11 => 70, 12 => 77, 13 => 84, 14 => 91, 15 => 98, ), )

preferences:
50.82 ms | 416 KiB | 5 Q