3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $j = 0; $num = array(1, 2, 3, 4, 5); for($i = 4; $i = 0; $i--) { $num[$i] = $num[$j]; $j++; } [12:29:54] Kuz345: print_r(array_reverse($num));
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ':', expecting ']' in /in/8cgmI on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/8cgmI on line 8
Process exited with code 255.