3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $n = 1; while (true) { $flag = true; for ($i = 1; $i <= 2; $i++) { if ($n % $i !== 0) { $flag = false; break; } } if ($flag) { break; } $n++; } echo $n;
based on lUalq
Output for 4.3.0 - 7.2.0
2