3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); foreach (range(0, 10000) as $i) { } printf ('%.2f'.PHP_EOL, microtime(true) - $start); $start = microtime(true); for ($i = 0; $i < 10000; $i++) { } printf ('%.2f'.PHP_EOL, microtime(true) - $start);
Output for 4.3.10 - 4.4.3, 4.4.5 - 4.4.9, 5.0.3, 5.1.0 - 5.4.34, 5.4.36 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0.00 0.00
Output for 4.4.4, 5.0.2, 5.0.4 - 5.0.5, 5.4.35
0.01 0.00
Output for 4.3.0 - 4.3.2, 4.3.6, 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/CTLLl on line 6 0.01PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/CTLLl on line 11 0.00PHP_EOL
Output for 4.3.3 - 4.3.5, 4.3.7 - 4.3.9, 5.0.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/CTLLl on line 6 0.00PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/CTLLl on line 11 0.00PHP_EOL