3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = hrtime(true); $a = array(); for($i=0;$i<10000;$i++) { $a[] = $i; } $end = hrtime(true); $time = $end - $start; echo $time;
Output for 8.1.7
194256
Output for 8.1.6
281251
Output for 8.1.5
248708
Output for 8.1.4
236424
Output for 8.1.3
261312
Output for 8.1.2
319572
Output for 8.1.1
245172
Output for 8.1.0
245171
Output for 8.0.20
190127
Output for 8.0.19
241385
Output for 8.0.18
243028
Output for 8.0.17
252315
Output for 8.0.16
251553
Output for 8.0.15
235844
Output for 8.0.14
242166
Output for 8.0.13
240763
Output for 8.0.12
288212
Output for 8.0.11
254848
Output for 8.0.10
240182
Output for 8.0.9
249157
Output for 8.0.8
557359
Output for 8.0.7
340049
Output for 8.0.6
244760
Output for 8.0.5
230123
Output for 8.0.3
435446
Output for 8.0.2
461205
Output for 8.0.1
2441486
Output for 8.0.0
461283
Output for 7.4.30
204384
Output for 7.4.29
365148
Output for 7.4.28
311446
Output for 7.4.27
265400
Output for 7.4.26
291929
Output for 7.4.25
277481
Output for 7.4.24
264027
Output for 7.4.23
267271
Output for 7.4.22
258766
Output for 7.4.21
441081
Output for 7.4.20
252084
Output for 7.4.16
629920
Output for 7.4.15
727988
Output for 7.4.14
699696
Output for 7.4.13
463366
Output for 7.4.12
619579
Output for 7.4.11
522370
Output for 7.4.10
639910
Output for 7.4.9
502497
Output for 7.4.8
491159
Output for 7.4.7
1077151
Output for 7.4.6
482147
Output for 7.4.5
502950
Output for 7.4.4
596169
Output for 7.4.3
672013
Output for 7.4.2
726922
Output for 7.4.1
603094
Output for 7.4.0
818897
Output for 7.3.33
261883
Output for 7.3.32
272513
Output for 7.3.31
264928
Output for 7.3.30
270759
Output for 7.3.29
654238
Output for 7.3.27
461120
Output for 7.3.26
757071
Output for 7.3.25
868849
Output for 7.3.24
470270
Output for 7.3.23
776096
Output for 7.3.22
499191
Output for 7.3.21
774633
Output for 7.3.20
676205
Output for 7.3.19
754632
Output for 7.3.18
484384
Output for 7.3.17
668935
Output for 7.3.16
456713
Output for 7.3.15
663269
Output for 7.3.14
758777
Output for 7.3.13
689352
Output for 7.3.12
672385
Output for 7.3.11
645124
Output for 7.3.10
659457
Output for 7.3.9
820474
Output for 7.3.8
460523
Output for 7.3.7
665484
Output for 7.3.6
702168
Output for 7.3.5
462973
Output for 7.3.4
450272
Output for 7.3.3
483065
Output for 7.3.2
800153
Output for 7.3.1
785973
Output for 7.3.0
472434

preferences:
85.71 ms | 536 KiB | 5 Q