3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php while (true) { $flag = true; for ($i = 1; $i <= 2; $i++) { if ($n % $i !== 0) { $flag = false; break; } } if ($flag) { break; } $n++; }
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: n in /in/lUalq on line 7 Notice: Undefined variable: n in /in/lUalq on line 7
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: n in /in/lUalq on line 7 Notice: Undefined variable: n in /in/lUalq on line 7