3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a() { return; } function b() { return null; } $start = microtime(true); for ($i = 0; $i<9999; $i++) { a(); } $end = microtime(true); echo "A :".($end-$start)."\n"; $start = microtime(true); for ($i = 0; $i<9999; $i++) { b(); } $end = microtime(true); echo "B :".($end-$start)."\n";
Output for 7.1.0
A :0.00033283233642578 B :0.00033998489379883
Output for 7.0.14
A :0.00035405158996582 B :0.00034403800964355
Output for 7.0.6
A :0.00020003318786621 B :0.0001981258392334
Output for 7.0.5
A :0.00029492378234863 B :0.00030207633972168
Output for 7.0.4
A :0.00030303001403809 B :0.00030088424682617
Output for 7.0.3
A :0.00031089782714844 B :0.00028705596923828
Output for 7.0.2
A :0.00021100044250488 B :0.00023889541625977
Output for 7.0.1
A :0.00027799606323242 B :0.00027608871459961
Output for 7.0.0
A :0.0003209114074707 B :0.00034880638122559
Output for 5.6.28
A :0.0011191368103027 B :0.0011231899261475
Output for 5.6.21
A :0.00093483924865723 B :0.00086283683776855
Output for 5.6.20
A :0.00086688995361328 B :0.00087904930114746
Output for 5.6.19
A :0.0005500316619873 B :0.00058698654174805
Output for 5.6.18
A :0.00061202049255371 B :0.00061511993408203
Output for 5.6.17
A :0.00081181526184082 B :0.00082612037658691
Output for 5.6.16
A :0.00090694427490234 B :0.00089716911315918
Output for 5.6.15
A :0.00068807601928711 B :0.00068497657775879
Output for 5.6.14
A :0.00065994262695312 B :0.0006718635559082
Output for 5.6.13
A :0.00055408477783203 B :0.00053906440734863
Output for 5.6.12
A :0.00087285041809082 B :0.00086092948913574
Output for 5.6.11
A :0.00090503692626953 B :0.00088715553283691
Output for 5.6.10
A :0.00082182884216309 B :0.00079703330993652
Output for 5.6.9
A :0.0008389949798584 B :0.00088882446289062
Output for 5.6.8
A :0.00055789947509766 B :0.00055098533630371
Output for 5.5.35
A :0.00080299377441406 B :0.00067615509033203
Output for 5.5.34
A :0.00082516670227051 B :0.00083708763122559
Output for 5.5.33
A :0.00069093704223633 B :0.00070905685424805
Output for 5.5.32
A :0.00063300132751465 B :0.00064611434936523
Output for 5.5.31
A :0.00052595138549805 B :0.00053906440734863
Output for 5.5.30
A :0.00073695182800293 B :0.00074410438537598
Output for 5.5.29
A :0.00072598457336426 B :0.00073885917663574
Output for 5.5.28
A :0.00073814392089844 B :0.00075793266296387
Output for 5.5.27
A :0.00060009956359863 B :0.00059700012207031
Output for 5.5.26
A :0.00084400177001953 B :0.00084304809570312
Output for 5.5.25
A :0.00053787231445312 B :0.00054788589477539
Output for 5.5.24
A :0.00073099136352539 B :0.0007319450378418
Output for 5.4.45
A :0.0005488395690918 B :0.00054001808166504
Output for 5.4.44
A :0.00052595138549805 B :0.00052714347839355
Output for 5.4.43
A :0.00052595138549805 B :0.00052905082702637
Output for 5.4.42
A :0.00051212310791016 B :0.00052285194396973
Output for 5.4.41
A :0.00052809715270996 B :0.00055503845214844
Output for 5.4.40
A :0.00053501129150391 B :0.00052499771118164
Output for 5.4.39
A :0.00054192543029785 B :0.00053906440734863
Output for 5.4.38
A :0.00054001808166504 B :0.00054311752319336
Output for 5.4.37
A :0.00052785873413086 B :0.00052785873413086
Output for 5.4.36
A :0.00051784515380859 B :0.00051307678222656
Output for 5.4.35
A :0.00055503845214844 B :0.00056314468383789
Output for 5.4.34
A :0.00053095817565918 B :0.00052618980407715
Output for 5.4.32
A :0.00051212310791016 B :0.00051093101501465
Output for 5.4.31
A :0.00053191184997559 B :0.00052785873413086
Output for 5.4.30
A :0.00078797340393066 B :0.0006411075592041
Output for 5.4.29
A :0.00056695938110352 B :0.00056600570678711
Output for 5.4.28
A :0.00052595138549805 B :0.00052094459533691
Output for 5.4.27
A :0.00051212310791016 B :0.00051689147949219
Output for 5.4.26
A :0.00061511993408203 B :0.0006110668182373
Output for 5.4.25
A :0.00083613395690918 B :0.0006561279296875
Output for 5.4.24
A :0.00052189826965332 B :0.00051188468933105
Output for 5.4.23
A :0.00052213668823242 B :0.00051212310791016
Output for 5.4.22
A :0.00053191184997559 B :0.00055289268493652
Output for 5.4.21
A :0.00051188468933105 B :0.00050783157348633
Output for 5.4.20
A :0.00055313110351562 B :0.00053691864013672
Output for 5.4.19
A :0.00056695938110352 B :0.00053787231445312
Output for 5.4.18
A :0.00081706047058105 B :0.00064492225646973
Output for 5.4.3, 5.4.17
A :0.0005340576171875 B :0.00052595138549805
Output for 5.4.16
A :0.00053501129150391 B :0.00053191184997559
Output for 5.4.15
A :0.00069117546081543 B :0.00084114074707031
Output for 5.4.14
A :0.00054287910461426 B :0.00054216384887695
Output for 5.4.13
A :0.00064611434936523 B :0.00060105323791504
Output for 5.4.12
A :0.00089502334594727 B :0.00071597099304199
Output for 5.4.11
A :0.00054311752319336 B :0.00054097175598145
Output for 5.4.10
A :0.00052785873413086 B :0.00053811073303223
Output for 5.4.9
A :0.00053000450134277 B :0.00053691864013672
Output for 5.4.8
A :0.00057601928710938 B :0.00051116943359375
Output for 5.4.7
A :0.00052714347839355 B :0.00052499771118164
Output for 5.4.6
A :0.00058794021606445 B :0.00050902366638184
Output for 5.4.5
A :0.00054597854614258 B :0.00054812431335449
Output for 5.4.4
A :0.00053000450134277 B :0.00052881240844727
Output for 5.4.2
A :0.00076699256896973 B :0.00074386596679688
Output for 5.4.1
A :0.00055384635925293 B :0.0005500316619873
Output for 5.4.0
A :0.0005340576171875 B :0.00052905082702637
Output for 5.3.29
A :0.00060391426086426 B :0.00061583518981934
Output for 5.3.28
A :0.00066089630126953 B :0.00068211555480957
Output for 5.3.27
A :0.00062990188598633 B :0.00065708160400391
Output for 5.3.26
A :0.00060296058654785 B :0.00060486793518066
Output for 5.3.25
A :0.00063681602478027 B :0.00064516067504883
Output for 5.3.24
A :0.00065207481384277 B :0.00066304206848145
Output for 5.3.23
A :0.00072979927062988 B :0.00072598457336426
Output for 5.3.22
A :0.00085306167602539 B :0.00096607208251953
Output for 5.3.21
A :0.00065088272094727 B :0.00062799453735352
Output for 5.3.20
A :0.00062012672424316 B :0.00062417984008789
Output for 5.3.19
A :0.00063300132751465 B :0.00063300132751465
Output for 5.3.18
A :0.00061416625976562 B :0.00061488151550293
Output for 5.3.17
A :0.0006251335144043 B :0.0006258487701416
Output for 5.3.16
A :0.00063109397888184 B :0.0006258487701416
Output for 5.3.15
A :0.00062894821166992 B :0.00064706802368164
Output for 5.3.14
A :0.00062799453735352 B :0.00086808204650879
Output for 5.3.13
A :0.00062298774719238 B :0.00064206123352051
Output for 5.3.12
A :0.0006251335144043 B :0.00066304206848145
Output for 5.3.11
A :0.0010299682617188 B :0.0010600090026855
Output for 5.3.10
A :0.00070095062255859 B :0.00068902969360352
Output for 5.3.9
A :0.00063204765319824 B :0.00063014030456543
Output for 5.3.8
A :0.00083708763122559 B :0.00081896781921387
Output for 5.3.7
A :0.00068497657775879 B :0.00066614151000977
Output for 5.3.6
A :0.00092387199401855 B :0.0012009143829346
Output for 5.3.5
A :0.00083613395690918 B :0.00081706047058105
Output for 5.3.4
A :0.00064492225646973 B :0.00063705444335938
Output for 5.3.3
A :0.00062417984008789 B :0.00061511993408203
Output for 5.3.2
A :0.00091099739074707 B :0.00077915191650391
Output for 5.3.1
A :0.00068497657775879 B :0.00069618225097656
Output for 5.3.0
A :0.00089311599731445 B :0.00089311599731445
Output for 5.2.17
A :0.00092601776123047 B :0.00093913078308105
Output for 5.2.16
A :0.001093864440918 B :0.001101016998291
Output for 5.2.15
A :0.00094199180603027 B :0.00093412399291992
Output for 5.2.14
A :0.00095415115356445 B :0.00095796585083008
Output for 5.2.13
A :0.00092291831970215 B :0.00091695785522461
Output for 5.2.12
A :0.00098896026611328 B :0.00098609924316406
Output for 5.2.11
A :0.0009310245513916 B :0.00092601776123047
Output for 5.2.10
A :0.00089502334594727 B :0.000885009765625
Output for 5.2.9
A :0.00093889236450195 B :0.00093698501586914
Output for 5.2.8
A :0.0010199546813965 B :0.0010111331939697
Output for 5.2.7
A :0.00095105171203613 B :0.00095200538635254
Output for 5.2.6
A :0.0013518333435059 B :0.0011880397796631
Output for 5.2.5
A :0.0012960433959961 B :0.0014059543609619
Output for 5.2.4
A :0.0011711120605469 B :0.0012249946594238
Output for 5.2.3
A :0.0013818740844727 B :0.001399040222168
Output for 5.2.2
A :0.0014898777008057 B :0.0013458728790283
Output for 5.2.1
A :0.00093483924865723 B :0.00094199180603027
Output for 5.2.0
A :0.0009150505065918 B :0.00091314315795898
Output for 5.1.6
A :0.00177001953125 B :0.0017571449279785
Output for 5.1.5
A :0.00092697143554688 B :0.00099706649780273
Output for 5.1.4
A :0.0010030269622803 B :0.00099897384643555
Output for 5.1.3
A :0.00090885162353516 B :0.00091195106506348
Output for 5.1.2
A :0.0014820098876953 B :0.0015389919281006
Output for 5.1.1
A :0.001054048538208 B :0.0013039112091064
Output for 5.1.0
A :0.0009911060333252 B :0.001291036605835
Output for 5.0.5
A :0.002357006072998 B :0.0029881000518799
Output for 5.0.4
A :0.0023560523986816 B :0.0026071071624756
Output for 5.0.3
A :0.0021069049835205 B :0.0023839473724365
Output for 5.0.2
A :0.002575159072876 B :0.0028800964355469
Output for 5.0.1
A :0.0031070709228516 B :0.0035030841827393
Output for 5.0.0
A :0.0019237995147705 B :0.0021140575408936
Output for 4.4.9
A :0.002696 B :0.00287
Output for 4.4.8
A :0.002718 B :0.002894
Output for 4.4.7
A :0.001727 B :0.001994
Output for 4.4.6
A :0.001539 B :0.001683
Output for 4.4.5
A :0.001491 B :0.001719
Output for 4.4.4
A :0.0015350000000001 B :0.0017499999999999
Output for 4.4.3
A :0.002541 B :0.002731
Output for 4.4.2
A :0.002093 B :0.002466
Output for 4.4.1
A :0.002498 B :0.003213
Output for 4.4.0
A :0.002065 B :0.002386
Output for 4.3.11
A :0.001907 B :0.0023219999999999
Output for 4.3.10
A :0.0020119999999999 B :0.0022
Output for 4.3.9
A :0.00222 B :0.002343
Output for 4.3.8
A :0.002216 B :0.002537
Output for 4.3.7
A :0.00248 B :0.00271
Output for 4.3.6
A :0.0018429999999999 B :0.002184
Output for 4.3.5
A :0.002204 B :0.0023930000000001
Output for 4.3.4
A :0.001841 B :0.00206
Output for 4.3.3
A :0.001907 B :0.00222
Output for 4.3.2
A :0.002555 B :0.002805
Output for 4.3.1
A :0.002368 B :0.002726
Output for 4.3.0
A :0.002788 B :0.002919