3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
178.39 ms | 1386 KiB | 55 Q