3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; for ($i = 0, $j = 100; $i < $j; ++$i) { $array[] = new DateTimeImmutable(); } $t1 = microtime(true); for ($i = 0; $i < 100; ++$i) { function () use ($array) { }; } $t3 = microtime(true); echo (1000000 * ($t3 - $t1)) . "\n\n";
Output for 7.4.4
32.901763916016
Output for 7.4.3
19.78874206543
Output for 7.3.11 - 7.3.14, 7.3.16, 7.4.2
20.980834960938
Output for 7.3.9, 7.4.1
28.133392333984
Output for 7.4.0
26.941299438477
Output for 7.3.1 - 7.3.2, 7.3.5, 7.3.10, 7.3.15
20.027160644531
Output for 7.3.8
32.186508178711
Output for 7.2.7, 7.3.7
41.007995605469
Output for 7.3.4, 7.3.6
25.98762512207
Output for 7.3.3
33.140182495117
Output for 7.3.0
27.179718017578
Output for 7.2.3, 7.2.24 - 7.2.25, 7.2.27, 7.2.29
23.126602172852
Output for 7.2.28
46.014785766602
Output for 7.2.26
33.855438232422
Output for 7.2.17, 7.2.23
30.994415283203
Output for 7.2.10, 7.2.12, 7.2.15, 7.2.18, 7.2.22
24.080276489258
Output for 7.2.20 - 7.2.21
38.14697265625
Output for 7.2.19
47.922134399414
Output for 7.2.2, 7.2.8, 7.2.16
25.033950805664
Output for 7.2.1, 7.2.5, 7.2.14
23.841857910156
Output for 7.2.13
48.160552978516
Output for 7.2.11
36.001205444336
Output for 7.2.9
31.948089599609
Output for 7.2.6
30.040740966797
Output for 7.2.4
37.908554077148
Output for 7.2.0
22.88818359375

preferences:
41.72 ms | 440 KiB | 5 Q