3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function starttime() { return microtime(true); } function duration($starttime) { $endtime = microtime(true); return number_format($endtime - $starttime, 10); } $starttime = starttime(); $arr = array(); echo duration($starttime) . PHP_EOL; $starttime2 = starttime(); $arr2 = []; echo duration($starttime2) . PHP_EOL;
based on G9GeS
Output for 7.0.1, 7.2.6
0.0000050068 0.0000000000
Output for 7.1.10 - 7.2.0
0.0000040531 0.0000000000
Output for 5.6.10, 5.6.15, 5.6.22, 7.0.2, 7.0.15, 7.1.0 - 7.1.2, 7.1.4 - 7.1.5, 7.1.7
0.0000050068 0.0000009537
Output for 7.0.8, 7.1.6
0.0000059605 0.0000000000
Output for 7.0.17, 7.1.3
0.0000050068 0.0000011921
Output for 7.0.7, 7.0.19 - 7.0.20
0.0000069141 0.0000009537
Output for 7.0.14, 7.0.18
0.0000081062 0.0000009537
Output for 7.0.3 - 7.0.4, 7.0.13, 7.0.16
0.0000059605 0.0000009537
Output for 7.0.12
0.0000069141 0.0000000000
Output for 7.0.11
0.0000081062 0.0000000000
Output for 5.6.3, 5.6.12, 5.6.18, 5.6.23, 5.6.29, 7.0.10
0.0000040531 0.0000009537
Output for 7.0.9
0.0000071526 0.0000011921
Output for 7.0.6
0.0000069141 0.0000011921
Output for 7.0.5
0.0000059605 0.0000011921
Output for 7.0.0
0.0000061989 0.0000011921
Output for hhvm-3.15.4
0.0000040531 0.0000011921
Output for 5.6.24, 5.6.30
0.0000050068 0.0000019073
Output for 5.6.19, 5.6.28
0.0000040531 0.0000019073
Output for 5.6.6 - 5.6.8, 5.6.26 - 5.6.27
0.0000040531 0.0000021458
Output for 5.6.14, 5.6.25
0.0000059605 0.0000019073
Output for 5.6.21
0.0000059605 0.0000069141
Output for 5.6.5, 5.6.20
0.0000059605 0.0000030994
Output for 5.6.4, 5.6.9, 5.6.17
0.0000050068 0.0000021458
Output for 5.6.16
0.0000040531 0.0000028610
Output for 5.6.2, 5.6.11, 5.6.13
0.0000038147 0.0000019073
Output for 5.6.1
0.0000040531 0.0000030994
Output for 5.6.0
0.0000028610 0.0000011921