3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); for ($i = 0; $i <= 10000000; $i++) { chr(0); } $time2 = microtime(true); echo $time2 - $time; echo "\r\n"; class FOO { const BAR = ''; public function stats() { $time = microtime(true); for ($i = 0; $i <= 10000000; $i++) { self::BAR; } $time2 = microtime(true); echo $time2 - $time; } } $foo = new FOO(); $foo->stats();
Output for 8.2.5
0.030675888061523 0.030627965927124
Output for 8.2.4
0.03370213508606 0.033616065979004
Output for 8.2.3
0.030790090560913 0.030710935592651
Output for 8.2.2
0.030739784240723 0.030838966369629
Output for 8.2.1
0.030942916870117 0.03074312210083
Output for 8.2.0
0.030730009078979 0.030565977096558
Output for 8.1.18
0.033864974975586 0.033706903457642
Output for 8.1.17
0.033804893493652 0.033730983734131
Output for 8.1.16
0.034041166305542 0.0348060131073
Output for 8.1.15
0.033684015274048 0.033659934997559
Output for 8.1.14
0.033776044845581 0.033660888671875
Output for 8.1.13
0.033750057220459 0.033674955368042
Output for 8.1.12
0.033951044082642 0.034737110137939
Output for 8.1.11
0.036261081695557 0.035049915313721
Output for 8.1.10
0.033879041671753 0.033788919448853
Output for 8.1.9
0.034002065658569 0.033813953399658
Output for 8.1.8
0.03388786315918 0.033782958984375
Output for 8.1.7
0.033725023269653 0.033692121505737
Output for 8.1.6
0.03406810760498 0.033716917037964
Output for 8.1.5
0.033803939819336 0.033776998519897
Output for 8.1.4
0.033719062805176 0.033674001693726
Output for 8.1.3
0.033921003341675 0.03364109992981
Output for 8.1.2
0.033679962158203 0.03358006477356
Output for 8.1.1
0.033672094345093 0.033671855926514
Output for 8.1.0
0.033810138702393 0.033659934997559
Output for 8.0.28
0.034614086151123 0.033615112304688
Output for 8.0.27
0.035084009170532 0.034348011016846
Output for 8.0.26
0.035455942153931 0.033618927001953
Output for 8.0.25
0.034590005874634 0.033605813980103
Output for 8.0.24
0.035188913345337 0.033604860305786
Output for 8.0.23
0.034684896469116 0.033670902252197
Output for 8.0.22
0.034862041473389 0.033638000488281
Output for 8.0.21
0.033778190612793 0.033611059188843
Output for 8.0.20
0.034698009490967 0.033569097518921
Output for 8.0.19
0.034347057342529 0.034425020217896
Output for 8.0.18
0.034631967544556 0.033614158630371
Output for 8.0.17
0.034646034240723 0.033700942993164
Output for 8.0.16
0.034172058105469 0.03371000289917
Output for 8.0.15
0.034381866455078 0.034555196762085
Output for 8.0.14
0.034643888473511 0.033605098724365
Output for 8.0.13
0.034642934799194 0.033700942993164
Output for 8.0.12
0.034349918365479 0.033679008483887
Output for 8.0.11
0.034528017044067 0.033640146255493
Output for 8.0.10
0.034588813781738 0.033720016479492
Output for 8.0.9
0.035279035568237 0.033667802810669
Output for 8.0.8
0.035118818283081 0.033582925796509
Output for 8.0.7
0.035223007202148 0.033583879470825
Output for 8.0.6
0.033747911453247 0.033740043640137
Output for 8.0.5
0.03371000289917 0.034155130386353
Output for 8.0.3
0.033653020858765 0.033747911453247
Output for 8.0.2
0.033699035644531 0.033895015716553
Output for 8.0.1
0.034471035003662 0.033849000930786
Output for 8.0.0
0.034340858459473 0.034188032150269
Output for 7.4.33
0.043936014175415 0.043094873428345
Output for 7.4.32
0.043612003326416 0.043138980865479
Output for 7.4.30
0.043262004852295 0.042961120605469
Output for 7.4.29
0.04298210144043 0.042999982833862
Output for 7.4.28
0.043407917022705 0.043091058731079
Output for 7.4.27
0.043098926544189 0.043041944503784
Output for 7.4.26
0.045599937438965 0.043053865432739
Output for 7.4.25
0.045637130737305 0.043277025222778
Output for 7.4.24
0.045560836791992 0.043071031570435
Output for 7.4.23
0.045655012130737 0.043161153793335
Output for 7.4.22
0.045567035675049 0.04314398765564
Output for 7.4.21
0.045373201370239 0.043253898620605
Output for 7.4.20
0.045711994171143 0.045842170715332
Output for 7.4.19
0.045242071151733 0.043133020401001
Output for 7.4.18
0.045628070831299 0.043000936508179
Output for 7.4.16
0.0431067943573 0.043087959289551
Output for 7.4.15
0.042990922927856 0.043097019195557
Output for 7.4.14
0.043009042739868 0.045466899871826
Output for 7.4.13
0.043220996856689 0.043079137802124
Output for 7.4.12
0.043482065200806 0.043229818344116
Output for 7.4.11
0.043421983718872 0.044820070266724
Output for 7.4.10
0.043192148208618 0.043245077133179
Output for 7.4.9
0.043057918548584 0.043111085891724
Output for 7.4.8
0.043200016021729 0.043117046356201
Output for 7.4.7
0.043035984039307 0.042976856231689
Output for 7.4.6
0.043380975723267 0.04294490814209
Output for 7.4.5
0.043105125427246 0.043028116226196
Output for 7.4.4
0.043097972869873 0.043338060379028
Output for 7.4.3
0.045210123062134 0.043761014938354
Output for 7.4.2
0.043184041976929 0.043185949325562
Output for 7.4.1
0.043223142623901 0.043138027191162
Output for 7.4.0
0.043190002441406 0.042793989181519
Output for 7.3.33
0.10396003723145 0.06842303276062
Output for 7.3.32
0.10253500938416 0.08484411239624
Output for 7.3.31
0.10189294815063 0.098621845245361
Output for 7.3.30
0.1042308807373 0.081143140792847
Output for 7.3.29
0.085444927215576 0.089380025863647
Output for 7.3.28
0.064391136169434 0.064267873764038
Output for 7.3.27
0.064546823501587 0.067412853240967
Output for 7.3.26
0.076923131942749 0.076302051544189
Output for 7.3.25
0.067473888397217 0.067440032958984
Output for 7.3.24
0.091629028320312 0.096714019775391
Output for 7.3.23
0.067731142044067 0.067323207855225
Output for 7.3.22
0.062057018280029 0.061163902282715
Output for 7.3.21
0.062286853790283 0.061357021331787
Output for 7.3.20
0.061908960342407 0.064135074615479
Output for 7.3.19
0.058769941329956 0.058733940124512
Output for 7.3.18
0.060299873352051 0.059379816055298
Output for 7.3.17
0.080162048339844 0.085571050643921
Output for 7.3.16
0.065074920654297 0.065727949142456
Output for 7.3.15
0.091212034225464 0.086066961288452
Output for 7.3.14
0.062093019485474 0.06115198135376
Output for 7.3.13
0.061719179153442 0.064310073852539
Output for 7.3.12
0.0676109790802 0.068156957626343
Output for 7.3.11
0.064677953720093 0.064460039138794
Output for 7.3.10
0.069432020187378 0.067381858825684
Output for 7.3.9
0.058151960372925 0.058113813400269
Output for 7.3.8
0.05830192565918 0.058355093002319
Output for 7.3.7
0.058618068695068 0.058168172836304
Output for 7.3.6
0.061456203460693 0.061381101608276
Output for 7.3.5
0.080798149108887 0.068948984146118
Output for 7.3.4
0.058742046356201 0.058428049087524
Output for 7.3.3
0.083033084869385 0.085783958435059
Output for 7.3.2
0.061255931854248 0.061151027679443
Output for 7.3.1
0.061292886734009 0.061235189437866
Output for 7.3.0
0.058608055114746 0.058103084564209
Output for 7.2.34
0.067421913146973 0.071965217590332
Output for 7.2.33
0.067482948303223 0.067338943481445
Output for 7.2.32
0.06475305557251 0.069783926010132
Output for 7.2.31
0.059650182723999 0.061343908309937
Output for 7.2.30
0.058489084243774 0.058190107345581
Output for 7.2.29
0.068227052688599 0.068355083465576
Output for 7.2.28
0.067506790161133 0.067292928695679
Output for 7.2.27
0.0676109790802 0.067608833312988
Output for 7.2.26
0.069946050643921 0.067638158798218
Output for 7.2.25
0.064624071121216 0.06704306602478
Output for 7.2.24
0.061963081359863 0.061950922012329
Output for 7.2.23
0.064443826675415 0.064496994018555
Output for 7.2.22
0.069257974624634 0.067453861236572
Output for 7.2.21
0.067547798156738 0.072548151016235
Output for 7.2.20
0.064498901367188 0.064378023147583
Output for 7.2.19
0.086091041564941 0.087848901748657
Output for 7.2.18
0.069766998291016 0.07602596282959
Output for 7.2.17
0.077880859375 0.083878040313721
Output for 7.2.16
0.080821990966797 0.087660789489746
Output for 7.2.15
0.07536792755127 0.081130027770996
Output for 7.2.14
0.09063196182251 0.082747936248779
Output for 7.2.13
0.076726913452148 0.084577083587646
Output for 7.2.12
0.085639953613281 0.078688144683838
Output for 7.2.11
0.088803052902222 0.093930006027222
Output for 7.2.10
0.077723979949951 0.068434000015259
Output for 7.2.9
0.082198143005371 0.083253145217896
Output for 7.2.8
0.086059093475342 0.076473951339722
Output for 7.2.7
0.088898897171021 0.077250957489014
Output for 7.2.6
0.083755970001221 0.0814368724823
Output for 7.2.5
0.086099147796631 0.079627990722656
Output for 7.2.4
0.070531129837036 0.081835985183716
Output for 7.2.3
0.074167013168335 0.081424951553345
Output for 7.2.2
0.075104951858521 0.081454038619995
Output for 7.2.1
0.078965902328491 0.089716911315918
Output for 7.2.0
0.076051950454712 0.061331987380981
Output for 7.1.33
0.079988956451416 0.079643964767456
Output for 7.1.32
0.0798180103302 0.080241203308105
Output for 7.1.31
0.081712007522583 0.079583168029785
Output for 7.1.30
0.079913854598999 0.079897880554199
Output for 7.1.29
0.089176893234253 0.089540958404541
Output for 7.1.28
0.088932991027832 0.088724136352539
Output for 7.1.27
0.082386016845703 0.084573030471802
Output for 7.1.26
0.08184289932251 0.080654144287109
Output for 7.1.25
0.093147039413452 0.091798067092896
Output for 7.1.24
0.081330060958862 0.081073045730591
Output for 7.1.23
0.087131023406982 0.098497152328491
Output for 7.1.22
0.090720176696777 0.089093923568726
Output for 7.1.21
0.096321105957031 0.09793496131897
Output for 7.1.20
0.092902898788452 0.093068838119507
Output for 7.1.19
0.095131874084473 0.095479965209961
Output for 7.1.18
0.080000877380371 0.080076932907104
Output for 7.1.17
0.080181837081909 0.079594850540161
Output for 7.1.16
0.088829040527344 0.088955879211426
Output for 7.1.15
0.08602499961853 0.085980892181396
Output for 7.1.14
0.085783004760742 0.085500001907349
Output for 7.1.13
0.08312201499939 0.084858894348145
Output for 7.1.12
0.085980892181396 0.085788011550903
Output for 7.1.11
0.082854032516479 0.082505941390991
Output for 7.1.10
0.082814931869507 0.082756996154785
Output for 7.1.9
0.079609870910645 0.079670906066895
Output for 7.1.8
0.08959698677063 0.086077213287354
Output for 7.1.7
0.08596396446228 0.0835280418396
Output for 7.1.6
0.10121703147888 0.09928297996521
Output for 7.1.5
0.084594011306763 0.082850933074951
Output for 7.1.4
0.082664012908936 0.082539796829224
Output for 7.1.3
0.082864046096802 0.085124015808105
Output for 7.1.2
0.10017395019531 0.096658945083618
Output for 7.1.1
0.093005180358887 0.10797905921936
Output for 7.1.0
0.079881906509399 0.079652786254883
Output for 7.0.33
0.35013699531555 0.082515954971313
Output for 7.0.32
0.35118913650513 0.083806991577148
Output for 7.0.31
0.3459198474884 0.082604169845581
Output for 7.0.30
0.35018515586853 0.083065986633301
Output for 7.0.29
0.33588600158691 0.082689046859741
Output for 7.0.28
0.3372848033905 0.085942029953003
Output for 7.0.27
0.34902787208557 0.095002889633179
Output for 7.0.26
0.3414671421051 0.089241981506348
Output for 7.0.25
0.3132541179657 0.088232040405273
Output for 7.0.24
0.31320095062256 0.084855079650879
Output for 7.0.23
0.33923316001892 0.085253000259399
Output for 7.0.22
0.3330500125885 0.082571983337402
Output for 7.0.21
0.32526206970215 0.085690975189209
Output for 7.0.20
0.33794784545898 0.085649967193604
Output for 7.0.19
0.36905813217163 0.087870836257935
Output for 7.0.18
0.34054398536682 0.088645935058594
Output for 7.0.17
0.32527804374695 0.082546949386597
Output for 7.0.16
0.34232091903687 0.085565090179443
Output for 7.0.15
0.3494279384613 0.083160877227783
Output for 7.0.14
0.34703016281128 0.085860967636108
Output for 7.0.13
0.35058093070984 0.085788011550903
Output for 7.0.12
0.34790802001953 0.082604885101318
Output for 7.0.11
0.33737707138062 0.082669019699097
Output for 7.0.10
0.34969711303711 0.094783067703247
Output for 7.0.9
0.32265710830688 0.079505205154419
Output for 7.0.8
0.3270800113678 0.079434871673584
Output for 7.0.7
0.33068513870239 0.090172052383423
Output for 7.0.6
0.32403802871704 0.087506055831909
Output for 7.0.5
0.33244514465332 0.089962005615234
Output for 7.0.4
0.33782410621643 0.083461999893188
Output for 7.0.3
0.34511113166809 0.08635401725769
Output for 7.0.2
0.350102186203 0.088904142379761
Output for 7.0.1
0.34033608436584 0.089112043380737
Output for 7.0.0
0.34898614883423 0.082559823989868
Output for 5.6.40
1.0267350673676 0.57871294021606
Output for 5.6.39
1.0699949264526 0.63083600997925
Output for 5.6.38
1.0283210277557 0.58436298370361
Output for 5.6.37
1.0153939723969 0.57475590705872
Output for 5.6.36
1.0138189792633 0.58092403411865
Output for 5.6.35
0.98705291748047 0.56589889526367
Output for 5.6.34
1.0038959980011 0.57417607307434
Output for 5.6.33
1.0020520687103 0.57083606719971
Output for 5.6.32
1.0128979682922 0.57470393180847
Output for 5.6.31
1.0363688468933 0.61971092224121
Output for 5.6.30
1.0290439128876 0.60560607910156
Output for 5.6.29
1.0082800388336 0.57996320724487
Output for 5.6.28
1.11998295784 0.58726811408997
Output for 5.6.27
1.0136618614197 0.57271003723145
Output for 5.6.26
1.0624399185181 0.59154510498047
Output for 5.6.25
1.0421929359436 0.59517812728882
Output for 5.6.24
1.1219232082367 0.61925983428955
Output for 5.6.23
0.9809741973877 0.57623410224915
Output for 5.6.22
1.0273478031158 0.59165620803833
Output for 5.6.21
1.0538520812988 0.63423609733582
Output for 5.6.20
1.0083961486816 0.58676791191101
Output for 5.6.19
1.0507941246033 0.59506988525391
Output for 5.6.18
0.98327612876892 0.57716488838196
Output for 5.6.17
1.0271110534668 0.57674193382263
Output for 5.6.16
1.0593161582947 0.57999300956726
Output for 5.6.15
1.0660741329193 0.59045696258545
Output for 5.6.14
1.098806142807 0.65018081665039
Output for 5.6.13
1.1143441200256 0.62388586997986
Output for 5.6.12
1.0699422359467 0.60179090499878
Output for 5.6.11
1.0589561462402 0.56862282752991
Output for 5.6.10
1.0240800380707 0.56815600395203
Output for 5.6.9
1.0409440994263 0.56804513931274
Output for 5.6.8
0.99270606040955 0.54636693000793
Output for 5.6.7
1.0311660766602 0.58047199249268
Output for 5.6.6
1.0804870128632 0.56997895240784
Output for 5.6.5
1.0953180789948 0.63770699501038
Output for 5.6.4
1.0605049133301 0.57847905158997
Output for 5.6.3
1.0573029518127 0.61174201965332
Output for 5.6.2
1.0379621982574 0.64846801757812
Output for 5.6.1
1.1235349178314 0.62483286857605
Output for 5.6.0
1.0338180065155 0.55391383171082

preferences:
147.89 ms | 402 KiB | 268 Q