3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = microtime(true); $a = array(); $i = 0; for ($i = 0; $i < 1000; $i++) { $a[] = $i; } $e = microtime(true); echo round(($e - $s) * 1000, 1) . " ms"; echo round(($e - $s) * 1000, 1) . " ms";
Output for 7.0.0 - 7.0.5, 7.0.7 - 7.0.8, 7.0.10 - 7.1.0
0 ms0 ms
Output for 5.4.36 - 5.4.37, 5.5.1, 5.5.33, 5.5.36, 5.6.5, 5.6.24 - 5.6.25, 7.0.6, 7.0.9
0.1 ms0.1 ms
Output for 5.2.0, 5.2.2, 5.2.7 - 5.2.8, 5.2.14, 5.3.0 - 5.3.17, 5.3.19 - 5.4.25, 5.4.27 - 5.4.35, 5.4.38 - 5.5.0, 5.5.2 - 5.5.6, 5.5.8 - 5.5.32, 5.5.34 - 5.5.35, 5.5.37 - 5.6.4, 5.6.6 - 5.6.23, 5.6.26 - 5.6.28
0.2 ms0.2 ms
Output for 5.1.0 - 5.1.3, 5.1.5 - 5.1.6, 5.2.1, 5.2.3 - 5.2.6, 5.2.9 - 5.2.13, 5.2.15 - 5.2.17, 5.3.18, 5.4.26, 5.5.7
0.3 ms0.3 ms
Output for 4.3.4, 4.3.6, 4.4.8, 5.1.4
0.4 ms0.4 ms
Output for 4.3.0, 4.3.2, 4.3.7, 4.3.10 - 4.4.0, 4.4.6, 4.4.9 - 5.0.5
0.5 ms0.5 ms
Output for 4.3.1, 4.3.3, 4.3.8 - 4.3.9, 4.4.1 - 4.4.5, 4.4.7
0.6 ms0.6 ms
Output for 4.3.5
1.1 ms1.1 ms