3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0; for($i=0;i<10;i++) { $a++; echo('a = '. $a); }
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected '++' (T_INC), expecting ')' in /in/bsWnW on line 3
Process exited with code 255.
Output for 5.2.15 - 5.3.26
Parse error: syntax error, unexpected T_INC, expecting ')' in /in/bsWnW on line 3
Process exited with code 255.