3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $number = 2; while (true) { foreach ($i = 2; $i < $number; $i++) { if ($number % $i == 0) { break; } } echo "$number\n"; $number++; }
Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected ';' in /in/6vkJ6 on line 5
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected ';' in /in/NPjfb on line 5
Process exited with code 255.