3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $b = array(); $c = array(); for ($x=1,$n=0;$x<20;$x=$x+3;) { $a[] = $x; $b[] = $x+1; $c[] = $x+2; //$x = $x+3; } print_r($a); echo "\n\n"; print_r($b); echo "\n\n"; print_r($c); echo "\n\n";
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected ';', expecting ')' in /in/WhFt0 on line 7
Process exited with code 255.