3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); $arr = []; for ($i = 0; $i < 1000; $i++) { array_push($arr, $i); } $end = microtime(true); echo number_format($end - $start, 8, '.', '') . "\n"; unset($arr); $start = microtime(true); $arr = []; for ($i = 0; $i < 1000; $i++) { $arr[] = $i; } $end = microtime(true); echo number_format($end - $start, 8, '.', '') . "\n";
based on VInOZ
Output for 7.2.0
0.00008202 0.00004101
Output for 7.1.7
0.00006604 0.00001812
Output for 7.1.6
0.00008202 0.00002384
Output for 7.1.5
0.00014615 0.00004315
Output for 7.1.2
0.00000000 -0.00000095
Output for 7.1.1
0.00015903 0.00003886
Output for 7.1.0
0.00011778 0.00002909
Output for 7.0.20
0.00010800 0.00003719
Output for 7.0.7, 7.0.16
0.00010705 0.00002909
Output for 7.0.15
0.00010681 0.00002909
Output for 7.0.14
0.00015807 0.00004005
Output for 7.0.13
0.00012589 0.00003719
Output for 7.0.12
0.00012612 0.00003099
Output for 7.0.11
0.00012803 0.00002980
Output for 7.0.10
0.00013089 0.00004101
Output for 7.0.9
0.00012302 0.00003791
Output for 7.0.8
0.00018406 0.00005007
Output for 7.0.6
0.00018501 0.00004411
Output for 7.0.5
0.00019598 0.00005102
Output for 7.0.4
0.00010610 0.00003195
Output for 7.0.3
0.00017500 0.00005007
Output for 7.0.2
0.00018001 0.00005198
Output for 7.0.1
0.00018382 0.00004983
Output for 7.0.0
0.00013208 0.00002909
Output for hhvm-3.17.3
0.00019097 0.00011706
Output for hhvm-3.15.4
0.00031209 0.00014591
Output for hhvm-3.12.14
0.00027800 0.00014496
Output for 5.6.30
0.00039387 0.00008917
Output for 5.6.29
0.00033092 0.00008798
Output for 5.6.28
0.00050688 0.00014400
Output for 5.6.27
0.00048590 0.00020313
Output for 5.6.26
0.00031400 0.00014091
Output for 5.6.25
0.00028706 0.00008988
Output for 5.6.24
0.00049496 0.00023794
Output for 5.6.23
0.00051785 0.00018215
Output for 5.6.22
0.00029588 0.00015497
Output for 5.6.21
0.00030208 0.00011086
Output for 5.6.20
0.00030208 0.00020599
Output for 5.6.19
0.00032401 0.00009012
Output for 5.6.18
0.00063491 0.00027895
Output for 5.6.17
0.00051498 0.00020313
Output for 5.6.16
0.00032020 0.00012803
Output for 5.6.15
0.00033593 0.00010800
Output for 5.6.14
0.00043416 0.00010681
Output for 5.6.13
0.00030398 0.00014091
Output for 5.6.12
0.00030494 0.00008917
Output for 5.6.11
0.00028396 0.00012112
Output for 5.6.10
0.00050282 0.00017405
Output for 5.6.9
0.00028706 0.00018883
Output for 5.6.8
0.00032306 0.00016379
Output for 5.6.7
0.00061989 0.00027204
Output for 5.6.6
0.00050211 0.00017905
Output for 5.6.5
0.00029206 0.00011015
Output for 5.6.4
0.00049496 0.00014496
Output for 5.6.3
0.00028706 0.00021505
Output for 5.6.2
0.00032401 0.00012398
Output for 5.6.1
0.00045681 0.00011301
Output for 5.6.0
0.00049090 0.00013900