3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array( array(29,11,15,30,33), array(30,11,25,18,02), array(12,15,08,06,18), array(17,20,03,21,02), array(26,27,12,30,11), array(05,25,34,11,16), array(29,11,06,30,14), array(05,26,12,18,33), array(23,28,05,22,09), array(05,36,31,32,27), array(02,06,03,05,14) ); foreach($data as &$value){ // Mind the & byref value sort($value); } print_r($data);
Output for 5.0.0 - 5.6.28
Array ( [0] => Array ( [0] => 11 [1] => 15 [2] => 29 [3] => 30 [4] => 33 ) [1] => Array ( [0] => 2 [1] => 11 [2] => 18 [3] => 25 [4] => 30 ) [2] => Array ( [0] => 0 [1] => 6 [2] => 12 [3] => 15 [4] => 18 ) [3] => Array ( [0] => 2 [1] => 3 [2] => 17 [3] => 20 [4] => 21 ) [4] => Array ( [0] => 11 [1] => 12 [2] => 26 [3] => 27 [4] => 30 ) [5] => Array ( [0] => 5 [1] => 11 [2] => 16 [3] => 25 [4] => 34 ) [6] => Array ( [0] => 6 [1] => 11 [2] => 14 [3] => 29 [4] => 30 ) [7] => Array ( [0] => 5 [1] => 12 [2] => 18 [3] => 26 [4] => 33 ) [8] => Array ( [0] => 0 [1] => 5 [2] => 22 [3] => 23 [4] => 28 ) [9] => Array ( [0] => 5 [1] => 27 [2] => 31 [3] => 32 [4] => 36 ) [10] => Array ( [0] => 2 [1] => 3 [2] => 5 [3] => 6 [4] => 14 ) )
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /in/R2Sa2 on line 16
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /in/R2Sa2 on line 16
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /in/R2Sa2 on line 16
Process exited with code 255.