3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 100; $b = 0; while (\true) { $b = $i*$i; if ($i++ == 50000000) break; } print($i . " - " . $b);
based on ejgX1
Output for 5.3.9 - 5.3.17, 5.3.19 - 5.3.22, 5.3.24 - 5.3.26, 5.3.29 - 7.1.0
50000001 - 2500000000000000
Output for 5.3.18, 5.3.23, 5.3.27 - 5.3.28

Process exited with code 137.