3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($x=1; $x<=100; $x = $x + 1); $tstart1 = microtime(true); for($x=1; $x<=5000000; $x++); $tstop1 = microtime(true); print $tstop1 - $tstart1; print" > "; $tstart = microtime(true); for($x=1; $x<=5000000; ++$x); $tstop = microtime(true); print $tstop - $tstart;
Output for 7.1.0
0.060303926467896 > 0.036893129348755
Output for 7.0.14
0.061050891876221 > 0.034791946411133
Output for 7.0.6
0.038022041320801 > 0.039618015289307
Output for 7.0.5
0.038526058197021 > 0.025881052017212
Output for 7.0.4
0.036380052566528 > 0.024343013763428
Output for 7.0.3
0.038069009780884 > 0.024908065795898
Output for 7.0.2
0.050050973892212 > 0.028700828552246
Output for 7.0.1
0.049425840377808 > 0.025019884109497
Output for 7.0.0
0.04901909828186 > 0.030942916870117
Output for 5.6.28
0.13780117034912 > 0.095638990402222
Output for 5.6.21
0.12831497192383 > 0.085893869400024
Output for 5.6.20
0.10351800918579 > 0.083448171615601
Output for 5.6.19
0.1050488948822 > 0.083323955535889
Output for 5.6.18
0.10610914230347 > 0.085875034332275
Output for 5.6.17
0.1070408821106 > 0.085750818252563
Output for 5.6.16
0.11537504196167 > 0.086014032363892
Output for 5.6.15
0.10303092002869 > 0.083539962768555
Output for 5.6.14
0.10936594009399 > 0.088346004486084
Output for 5.6.13
0.12681603431702 > 0.085741996765137
Output for 5.6.12
0.12789583206177 > 0.085758924484253
Output for 5.6.11
0.11753916740417 > 0.085690975189209
Output for 5.6.10
0.12257218360901 > 0.085726022720337
Output for 5.6.9
0.12662196159363 > 0.1062970161438
Output for 5.6.8
0.108638048172 > 0.085844993591309
Output for 5.6.7
0.12360286712646 > 0.085729122161865
Output for 5.5.35
0.10601997375488 > 0.085807085037231
Output for 5.5.34
0.12751007080078 > 0.088232040405273
Output for 5.5.33
0.11553406715393 > 0.085931062698364
Output for 5.5.32
0.12628293037415 > 0.086026906967163
Output for 5.5.31
0.11206698417664 > 0.086557865142822
Output for 5.5.30
0.10318994522095 > 0.083762168884277
Output for 5.5.29
0.10861396789551 > 0.086307048797607
Output for 5.5.28
0.10820984840393 > 0.088284015655518
Output for 5.5.27
0.1239070892334 > 0.085980176925659
Output for 5.5.26
0.13114905357361 > 0.085775136947632
Output for 5.5.25
0.13210201263428 > 0.085723161697388
Output for 5.5.24
0.12857484817505 > 0.085868120193481
Output for 5.4.45
0.10908389091492 > 0.090769052505493
Output for 5.4.44
0.11042594909668 > 0.087636947631836
Output for 5.4.43
0.13270115852356 > 0.087503910064697
Output for 5.4.42
0.12484693527222 > 0.087919950485229
Output for 5.4.41
0.11302208900452 > 0.092745065689087
Output for 5.4.40
0.12323117256165 > 0.087674856185913
Output for 5.4.39
0.1237621307373 > 0.087332010269165
Output for 5.4.38
0.10489797592163 > 0.087455987930298
Output for 5.4.37
0.13122010231018 > 0.087668895721436
Output for 5.4.36
0.11523699760437 > 0.087690114974976
Output for 5.4.35
0.12380504608154 > 0.087477922439575
Output for 5.4.34
0.10503101348877 > 0.087407827377319
Output for 5.4.32
0.13131213188171 > 0.087487936019897
Output for 5.4.31
0.12528085708618 > 0.087999105453491
Output for 5.4.30
0.12148690223694 > 0.087273836135864
Output for 5.4.29
0.12300992012024 > 0.087440967559814
Output for 5.4.28
0.12941908836365 > 0.092902898788452
Output for 5.4.27
0.11486291885376 > 0.087408781051636
Output for 5.4.26
0.10506010055542 > 0.087502956390381
Output for 5.4.25
0.13707399368286 > 0.08745813369751
Output for 5.4.24
0.13055205345154 > 0.088327884674072
Output for 5.4.23
0.1055691242218 > 0.087502002716064
Output for 5.4.22
0.10567092895508 > 0.098282098770142
Output for 5.4.21
0.13112187385559 > 0.087722063064575
Output for 5.4.20
0.12841510772705 > 0.088068962097168
Output for 5.4.19
0.11959600448608 > 0.087358951568604
Output for 5.4.18
0.12218999862671 > 0.087589979171753
Output for 5.4.17
0.12838077545166 > 0.10966682434082
Output for 5.4.16
0.12120294570923 > 0.088195085525513
Output for 5.4.15
0.12656712532043 > 0.10554099082947
Output for 5.4.14
0.13502407073975 > 0.087399959564209
Output for 5.4.13
0.12054109573364 > 0.1061589717865
Output for 5.4.12
0.12184500694275 > 0.089255094528198
Output for 5.4.11
0.12518215179443 > 0.087284088134766
Output for 5.4.10
0.11049008369446 > 0.10286498069763
Output for 5.4.9
0.13063287734985 > 0.08771276473999
Output for 5.4.8
0.11858296394348 > 0.08747410774231
Output for 5.4.7
0.13217687606812 > 0.087796211242676
Output for 5.4.6
0.12819194793701 > 0.08743691444397
Output for 5.4.5
0.13254594802856 > 0.11216497421265
Output for 5.4.4
0.12993097305298 > 0.088337898254395
Output for 5.4.3
0.10597491264343 > 0.087541103363037
Output for 5.4.2
0.12871408462524 > 0.089812040328979
Output for 5.4.1
0.1051812171936 > 0.087561845779419
Output for 5.4.0
0.1303539276123 > 0.087599039077759
Output for 5.3.29
0.1448380947113 > 0.11383986473083
Output for 5.3.28
0.13145613670349 > 0.11211585998535
Output for 5.3.27
0.15565395355225 > 0.11126589775085
Output for 5.3.26
0.13400101661682 > 0.11049103736877
Output for 5.3.25
0.15836596488953 > 0.11090397834778
Output for 5.3.24
0.14776802062988 > 0.11197090148926
Output for 5.3.23
0.1565101146698 > 0.11656904220581
Output for 5.3.22
0.1748309135437 > 0.13838887214661
Output for 5.3.21
0.14365005493164 > 0.11758303642273
Output for 5.3.20
0.16692209243774 > 0.11796498298645
Output for 5.3.19
0.1655580997467 > 0.11444711685181
Output for 5.3.18
0.16163611412048 > 0.11023902893066
Output for 5.3.17
0.1579442024231 > 0.11133813858032
Output for 5.3.16
0.15592098236084 > 0.11367392539978
Output for 5.3.15
0.14363718032837 > 0.11037397384644
Output for 5.3.14
0.15810513496399 > 0.11049103736877
Output for 5.3.13
0.13768005371094 > 0.11233305931091
Output for 5.3.12
0.1378128528595 > 0.11285185813904
Output for 5.3.11
0.17300295829773 > 0.13083910942078
Output for 5.3.10
0.15394806861877 > 0.11092805862427
Output for 5.3.9
0.16106414794922 > 0.12211012840271
Output for 5.3.8
0.16769194602966 > 0.12174797058105
Output for 5.3.7
0.13997101783752 > 0.12166786193848
Output for 5.3.6
0.14018082618713 > 0.11972808837891
Output for 5.3.5
0.14788913726807 > 0.12010502815247
Output for 5.3.4
0.17334604263306 > 0.12883615493774
Output for 5.3.3
0.16268181800842 > 0.12856483459473
Output for 5.3.2
0.14649701118469 > 0.12186598777771
Output for 5.3.1
0.15419888496399 > 0.12140083312988
Output for 5.3.0
0.13757109642029 > 0.12193012237549
Output for 5.2.17
0.18143105506897 > 0.15575194358826
Output for 5.2.16
0.2079770565033 > 0.15475606918335
Output for 5.2.15
0.20055294036865 > 0.15295815467834
Output for 5.2.14
0.19141411781311 > 0.15728902816772
Output for 5.2.13
0.19231200218201 > 0.15526509284973
Output for 5.2.12
0.21243000030518 > 0.17050409317017
Output for 5.2.11
0.20484805107117 > 0.15827202796936
Output for 5.2.10
0.20902419090271 > 0.15593814849854
Output for 5.2.9
0.17968392372131 > 0.16536211967468
Output for 5.2.8
0.17529201507568 > 0.14840412139893
Output for 5.2.7
0.18070411682129 > 0.15519189834595
Output for 5.2.6
0.21410608291626 > 0.18115711212158
Output for 5.2.5
0.17451906204224 > 0.14847302436829
Output for 5.2.4
0.17943596839905 > 0.15375185012817
Output for 5.2.3
0.17648506164551 > 0.15191698074341
Output for 5.2.2
0.17591190338135 > 0.15453100204468
Output for 5.2.1
0.1712691783905 > 0.13973689079285
Output for 5.2.0
0.17952513694763 > 0.14866590499878
Output for 5.1.6
0.21889209747314 > 0.15549993515015
Output for 5.1.5
0.20017600059509 > 0.16111493110657
Output for 5.1.4
0.22110986709595 > 0.16293907165527
Output for 5.1.3
0.22125720977783 > 0.15648603439331
Output for 5.1.2
0.22699403762817 > 0.18912792205811
Output for 5.1.1
0.18332719802856 > 0.16665601730347
Output for 5.1.0
0.20124697685242 > 0.18385410308838
Output for 5.0.5
0.59276294708252 > 0.47015404701233
Output for 5.0.4
0.39940309524536 > 0.36213207244873
Output for 5.0.3
0.46580004692078 > 0.38580703735352
Output for 5.0.2
0.42726802825928 > 0.34965896606445
Output for 5.0.1
0.47891688346863 > 0.47430896759033
Output for 5.0.0
0.41167688369751 > 0.34968304634094
Output for 4.4.9
0.372048 > 0.345207
Output for 4.4.8
0.371754 > -0.648729
Output for 4.4.7
0.485529 > -0.533672
Output for 4.4.6
0.372393 > 0.336718
Output for 4.4.5
0.361298 > 0.33318
Output for 4.4.4
0.399067 > -0.647947
Output for 4.4.3
-0.603285 > 0.353379
Output for 4.4.2
0.430755 > -0.642437
Output for 4.4.1
0.386008 > 0.351848
Output for 4.4.0
0.406378 > 0.35836
Output for 4.3.11
0.41373 > 0.349193
Output for 4.3.10
-0.576294 > 0.398954
Output for 4.3.9
-0.613394 > 0.337435
Output for 4.3.8
0.381103 > -0.651445
Output for 4.3.7
0.422043 > -0.651241
Output for 4.3.6
0.380233 > -0.645477
Output for 4.3.5
0.366796 > 0.347004
Output for 4.3.4
0.393134 > 0.330154
Output for 4.3.3
-0.586976 > 0.326882
Output for 4.3.2
-0.640991 > 0.334116
Output for 4.3.1
0.35612 > -0.677591
Output for 4.3.0
0.400103 > -0.669