3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $teste = array(1, 2, 3, 4, 5, 6, 7, 8, 10); /* foreach($teste as $key){ echo $key.'<br />'; }*/ for($i=0,$i<count($teste),$++){ echo $teste[$i].'<br />'; }
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '++' (T_INC), expecting variable (T_VARIABLE) or '$' in /in/pqCrl on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_INC, expecting T_VARIABLE or '$' in /in/pqCrl on line 9
Process exited with code 255.