3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = 0; for ($i = 0; $i < 100; ++$i) { ($i & 1) or ++y; ++$y; } echo $y;
Output for 7.0.0
Parse error: syntax error, unexpected ';', expecting '[' in /in/8ndON on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected ';', expecting '(' in /in/8ndON on line 6
Process exited with code 255.

preferences:
164.15 ms | 1395 KiB | 24 Q