3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* How many times the code under test should run in each function */ define('LOOP',10000); function f1() { for($i=0; $i<LOOP; ++$i) { foreach (range(0, 100) as $i) { //echo $i . PHP_EOL; } } } $start = microtime(true); f1(); $stop = microtime(true); $time1 = $stop - $start;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0

Process exited with code 137.