3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 20000; $time = microtime(true); $items = array(); for ($i = 0; $i < $count; $i++) {} $spentTime = microtime(true) - $time; echo number_format($spentTime, 3) . ' seconds';
Output for 5.4.3, 5.4.23, 5.4.27 - 5.4.28, 5.4.37, 5.5.4, 5.5.33, 5.5.35 - 5.5.37, 5.6.0, 5.6.2, 5.6.23 - 5.6.25, 7.0.0 - 7.0.10, 7.1.0
0.000 seconds
Output for 5.1.0 - 5.1.1, 5.1.4 - 5.4.2, 5.4.4 - 5.4.22, 5.4.24 - 5.4.26, 5.4.29 - 5.4.36, 5.4.38 - 5.5.3, 5.5.5 - 5.5.32, 5.5.34, 5.5.38, 5.6.1, 5.6.3 - 5.6.22, 5.6.28, 7.0.14
0.001 seconds
Output for 4.3.1, 4.4.7, 5.1.2 - 5.1.3
0.002 seconds
Output for 4.3.0, 4.3.4 - 4.3.7, 4.3.10 - 4.4.3, 4.4.5, 4.4.8 - 5.0.0, 5.0.2, 5.0.5
0.004 seconds
Output for 4.3.2 - 4.3.3, 4.3.8 - 4.3.9, 4.4.4, 4.4.6, 5.0.1, 5.0.3 - 5.0.4
0.003 seconds