3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $startTime = microtime(true); $outerLoop = 1000000000; $innerLoop = 1; $mod = 1; for($i = 0; $i < $outerLoop; $i++) { for($j = 0; $j < $innerLoop; $j++) { $mod = ($mod + 1) % 3; } } $endTime = microtime(true); $seconds = ($endTime - $startTime); echo "Done. Took: $seconds\n";
Output for 5.3.16 - 7.2.0

Process exited with code 137.