3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 1; for ($i=1; $i < 10000000; $i++) { $x = $x + $i % $x; } echo $x;
Output for 4.3.1 - 4.3.4, 4.3.6 - 4.4.5, 4.4.7 - 7.2.0
1
Output for 4.3.0, 4.3.5, 4.4.6

Process exited with code 137.