3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo( $n ) { echo '::call'; return $n*2; } for ( $i = 0, $i < foo(2); $++){}
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '++' (T_INC), expecting variable (T_VARIABLE) or '$' in /in/cXBDK on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_INC, expecting T_VARIABLE or '$' in /in/cXBDK on line 9
Process exited with code 255.