3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.11, 4.4.0 - 4.4.3, 4.4.5 - 4.4.9, 5.0.3, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0, 5.3.2 - 5.3.15, 5.3.17 - 5.3.29, 5.4.0 - 5.4.16, 5.4.18 - 5.4.19, 5.4.21 - 5.4.27, 5.4.29 - 5.4.43, 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
0.00 0.00
Output for 4.4.4, 5.0.2, 5.0.4 - 5.0.5, 5.3.1, 5.3.16, 5.4.17, 5.4.20, 5.4.28, 5.4.44
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

preferences:
198.21 ms | 402 KiB | 325 Q