3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test1() { $s = microtime(true); $a = 15484; for ($i = 0; $i < 1000000; $i++) { $b = $a / 2; } return microtime(true) - $s; } function test2() { $s = microtime(true); $a = 15484; for ($i = 0; $i < 1000000; $i++) { $b = $a / 2; } return microtime(true) - $s; } echo test1()."\n"; echo test2()."\n";
Output for 7.1.0
0.053000926971436 0.04849100112915
Output for 7.0.14
0.068127870559692 0.053592920303345
Output for 7.0.10
0.041991949081421 0.032953023910522
Output for 7.0.9
0.035097122192383 0.032909870147705
Output for 7.0.8
0.044703006744385 0.045713186264038
Output for 7.0.7
0.031786918640137 0.032010078430176
Output for 7.0.6
0.045651912689209 0.036612033843994
Output for 7.0.5
0.036882877349854 0.031815052032471
Output for 7.0.4
0.043084144592285 0.037977933883667
Output for 7.0.3
0.04750394821167 0.040291786193848
Output for 7.0.2
0.028071165084839 0.026355028152466
Output for 7.0.1
0.036201953887939 0.033844947814941
Output for 7.0.0
0.029948949813843 0.028698921203613
Output for 5.6.25
0.059938192367554 0.051993846893311
Output for 5.6.24
0.050733089447021 0.049723863601685
Output for 5.6.23
0.061666965484619 0.050818920135498
Output for 5.6.22
0.070271015167236 0.058862924575806
Output for 5.6.21
0.06521201133728 0.063440799713135
Output for 5.6.20
0.066317081451416 0.052638053894043
Output for 5.6.19
0.05676794052124 0.04957103729248
Output for 5.6.18
0.059768915176392 0.051048994064331
Output for 5.6.17
0.10083699226379 0.064877033233643
Output for 5.6.16
0.055018901824951 0.043641090393066
Output for 5.6.15
0.048814058303833 0.048826932907104
Output for 5.6.14
0.067547082901001 0.058547019958496
Output for 5.6.13
0.048976898193359 0.048916101455688
Output for 5.6.12
0.050526142120361 0.049295902252197
Output for 5.6.11
0.065352916717529 0.049586772918701
Output for 5.6.10
0.050927877426147 0.048976898193359
Output for 5.6.9
0.066917181015015 0.049820184707642
Output for 5.6.8
0.045787811279297 0.044865846633911
Output for 5.6.7
0.062489986419678 0.052677869796753
Output for 5.6.6
0.043767929077148 0.042699098587036
Output for 5.6.5
0.057229995727539 0.053605079650879
Output for 5.6.4
0.065446853637695 0.053864002227783
Output for 5.6.3
0.058533906936646 0.061197996139526
Output for 5.6.2
0.052589893341064 0.05276894569397
Output for 5.6.1
0.067682027816772 0.05380392074585
Output for 5.6.0
0.07119607925415 0.060129165649414
Output for 5.5.38
0.073391914367676 0.058616876602173
Output for 5.5.37
0.051488161087036 0.050698041915894
Output for 5.5.36
0.059997081756592 0.051224946975708
Output for 5.5.35
0.0726158618927 0.057677984237671
Output for 5.5.34
0.057096004486084 0.051913976669312
Output for 5.5.33
0.078189134597778 0.056341171264648
Output for 5.5.32
0.043277025222778 0.043105840682983
Output for 5.5.31
0.060577869415283 0.053916931152344
Output for 5.5.30
0.056155920028687 0.056768894195557
Output for 5.5.29
0.046086072921753 0.044627904891968
Output for 5.5.28
0.084246873855591 0.05692982673645
Output for 5.5.27
0.045479774475098 0.045457124710083
Output for 5.5.26
0.043652057647705 0.042931795120239
Output for 5.5.25
0.058062076568604 0.050679922103882
Output for 5.5.24
0.066709041595459 0.05528712272644
Output for 5.5.23
0.044694900512695 0.046470880508423
Output for 5.5.22
0.069678783416748 0.052724838256836
Output for 5.5.21
0.067610025405884 0.054625034332275
Output for 5.5.20
0.060604095458984 0.050753116607666
Output for 5.5.19
0.058801174163818 0.050552129745483
Output for 5.5.18
0.064729928970337 0.055158853530884
Output for 5.5.16
0.064071178436279 0.051107883453369
Output for 5.5.15
0.049992799758911 0.049333095550537
Output for 5.5.14
0.049792051315308 0.049113035202026
Output for 5.5.13
0.049175977706909 0.044599056243896
Output for 5.5.12
0.041470050811768 0.04041314125061
Output for 5.5.11
0.040735960006714 0.040401935577393
Output for 5.5.10
0.041337013244629 0.04086709022522
Output for 5.5.9
0.045652866363525 0.040323972702026
Output for 5.5.8
0.041132926940918 0.040388822555542
Output for 5.5.7
0.042680025100708 0.042577028274536
Output for 5.5.6
0.047010898590088 0.047821998596191
Output for 5.5.5
0.042541027069092 0.040472984313965
Output for 5.5.4
0.041400194168091 0.043889045715332
Output for 5.5.3
0.048617839813232 0.040456056594849
Output for 5.5.2
0.058350801467896 0.04955005645752
Output for 5.5.1
0.041683912277222 0.040220022201538
Output for 5.5.0
0.043529033660889 0.042758941650391
Output for 5.4.45
0.052178144454956 0.063165187835693
Output for 5.4.44
0.05086612701416 0.048896074295044
Output for 5.4.43
0.042567014694214 0.042432069778442
Output for 5.4.42
0.059592008590698 0.048809766769409
Output for 5.4.41
0.069169998168945 0.057559013366699
Output for 5.4.40
0.046190977096558 0.040045976638794
Output for 5.4.39
0.057638168334961 0.050050020217896
Output for 5.4.38
0.069738864898682 0.056746006011963
Output for 5.4.37
0.062307119369507 0.049395799636841
Output for 5.4.36
0.069788217544556 0.053323030471802
Output for 5.4.35
0.06005597114563 0.051414012908936
Output for 5.4.34
0.043920040130615 0.042957067489624
Output for 5.4.32
0.053223133087158 0.052463054656982
Output for 5.4.31
0.052191019058228 0.052345991134644
Output for 5.4.30
0.040162086486816 0.040060997009277
Output for 5.4.29
0.051830053329468 0.044898986816406
Output for 5.4.28
0.039906024932861 0.039947032928467
Output for 5.4.27
0.040134191513062 0.040683031082153
Output for 5.4.26
0.041594982147217 0.040031909942627
Output for 5.4.25
0.039984941482544 0.040210962295532
Output for 5.4.24
0.042414903640747 0.042158126831055
Output for 5.4.23
0.042540073394775 0.042266130447388
Output for 5.4.22
0.040112018585205 0.040393829345703
Output for 5.4.21
0.040580987930298 0.04010009765625
Output for 5.4.20
0.039999008178711 0.040076017379761
Output for 5.4.19
0.040076971054077 0.040138959884644
Output for 5.4.18
0.065917015075684 0.051856994628906
Output for 5.4.17
0.066383838653564 0.041377067565918
Output for 5.4.16
0.042374134063721 0.043452978134155
Output for 5.4.15
0.04200291633606 0.042528867721558
Output for 5.4.14
0.073075771331787 0.05750298500061
Output for 5.4.13
0.063058137893677 0.049421787261963
Output for 5.4.12
0.068304061889648 0.053109884262085
Output for 5.4.11
0.057215929031372 0.048743963241577
Output for 5.4.10
0.068624019622803 0.050925970077515
Output for 5.4.9
0.057953834533691 0.04900598526001
Output for 5.4.8
0.067306041717529 0.052743196487427
Output for 5.4.7
0.048526048660278 0.04886794090271
Output for 5.4.6
0.067304134368896 0.051915884017944
Output for 5.4.5
0.072377920150757 0.065944910049438
Output for 5.4.4
0.046072006225586 0.045353889465332
Output for 5.4.3
0.067139863967896 0.056062936782837
Output for 5.4.2
0.044002056121826 0.042199850082397
Output for 5.4.1
0.068104028701782 0.055627107620239
Output for 5.4.0
0.062625169754028 0.050824880599976
Output for 5.3.29
0.07596492767334 0.059262990951538
Output for 5.3.28
0.047498941421509 0.048364162445068
Output for 5.3.27
0.061105966567993 0.061041116714478
Output for 5.3.26
0.050206184387207 0.051815986633301
Output for 5.3.25
0.074818849563599 0.060220956802368
Output for 5.3.24
0.058008193969727 0.050769090652466
Output for 5.3.23
0.076859951019287 0.060719966888428
Output for 5.3.22
0.06031608581543 0.059114933013916
Output for 5.3.21
0.071609973907471 0.061170101165771
Output for 5.3.20
0.075785875320435 0.059324026107788
Output for 5.3.19
0.088716983795166 0.062616109848022
Output for 5.3.18
0.083966016769409 0.067614078521729
Output for 5.3.17
0.062135934829712 0.05686092376709
Output for 5.3.16
0.051598072052002 0.051161050796509
Output for 5.3.15
0.066512823104858 0.059637069702148
Output for 5.3.14
0.052475929260254 0.053841829299927
Output for 5.3.13
0.076125860214233 0.059365034103394
Output for 5.3.12
0.066365957260132 0.058119773864746
Output for 5.3.11
0.07132887840271 0.061316967010498
Output for 5.3.10
0.071613788604736 0.060307025909424
Output for 5.3.9
0.063796997070312 0.06035590171814
Output for 5.3.8
0.088711023330688 0.069913148880005
Output for 5.3.7
0.064602136611938 0.063528060913086
Output for 5.3.6
0.085065841674805 0.066072940826416
Output for 5.3.5
0.060031890869141 0.061439037322998
Output for 5.3.4
0.078946828842163 0.061100959777832
Output for 5.3.3
0.059939861297607 0.059916973114014
Output for 5.3.2
0.088046073913574 0.067306041717529
Output for 5.3.1
0.079128980636597 0.061349868774414
Output for 5.3.0
0.071025848388672 0.059598207473755
Output for 5.2.17
0.090901136398315 0.073882818222046
Output for 5.2.16
0.099776983261108 0.075448989868164
Output for 5.2.15
0.096959114074707 0.07278299331665
Output for 5.2.14
0.072396039962769 0.072824954986572
Output for 5.2.13
0.10141897201538 0.078918933868408
Output for 5.2.12
0.065743923187256 0.066373825073242
Output for 5.2.11
0.093994140625 0.07391095161438
Output for 5.2.10
0.083304882049561 0.073489189147949
Output for 5.2.9
0.069223165512085 0.067704200744629
Output for 5.2.8
0.085247993469238 0.072780132293701
Output for 5.2.7
0.065384149551392 0.064923048019409
Output for 5.2.6
0.087029933929443 0.068997144699097
Output for 5.2.5
0.068412780761719 0.064936876296997
Output for 5.2.4
0.070472002029419 0.069758176803589
Output for 5.2.3
0.078541994094849 0.066082954406738
Output for 5.2.2
0.059002161026001 0.062456846237183
Output for 5.2.1
0.085445165634155 0.068042039871216
Output for 5.2.0
0.094189882278442 0.069689989089966
Output for 5.1.6
0.096443176269531 0.069225072860718
Output for 5.1.5
0.10631799697876 0.080183029174805
Output for 5.1.4
0.096479177474976 0.068712949752808
Output for 5.1.3
0.060176134109497 0.059607028961182
Output for 5.1.2
0.10232996940613 0.076119899749756
Output for 5.1.1
0.070204019546509 0.06558895111084
Output for 5.1.0
0.066180944442749 0.064789056777954
Output for 5.0.5
0.20258784294128 0.16103601455688
Output for 5.0.4
0.1565248966217 0.15598201751709
Output for 5.0.3
0.13011503219604 0.13135719299316
Output for 5.0.2
0.18594098091125 0.14454889297485
Output for 5.0.1
0.19257402420044 0.14124298095703
Output for 5.0.0
0.15944695472717 0.14215493202209
Output for 4.4.9
0.155477 0.145955
Output for 4.4.8
0.153295 0.143999
Output for 4.4.7
0.18018 0.145168
Output for 4.4.6
0.173203 0.144978
Output for 4.4.5
0.142969 0.14172
Output for 4.4.4
0.19202 0.143076
Output for 4.4.3
0.132274 0.130149
Output for 4.4.2
0.170289 0.143033
Output for 4.4.1
0.197512 0.143433
Output for 4.4.0
0.181991 0.141371
Output for 4.3.11
0.187985 0.146133
Output for 4.3.10
0.132847 0.128101
Output for 4.3.9
0.163319 0.145746
Output for 4.3.8
0.162457 0.146601
Output for 4.3.7
0.190512 0.145512
Output for 4.3.6
0.175477 0.143659
Output for 4.3.5
0.201932 0.144082
Output for 4.3.4
0.139604 0.134674
Output for 4.3.3
0.163062 0.157804
Output for 4.3.2
0.139032 0.127216
Output for 4.3.1
0.168953 0.150564
Output for 4.3.0
0.130773 0.120974