3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo {} $foo = new Foo; $rounds = 1000000; $start = microtime(true); for($i=0; $i<$rounds; $i++) { get_class($foo); } echo (microtime(true) - $start); echo "\n"; if (class_exists('ReflectionClass')) { $reflectionClass = new ReflectionClass($foo); $start = microtime(true); for($i=0; $i<$rounds; $i++) { $reflectionClass->getName(); } echo (microtime(true) - $start); echo "\n"; $start = microtime(true); for($i=0; $i<$rounds; $i++) { $reflectionClass = new ReflectionClass($foo); $reflectionClass->getName(); } echo (microtime(true) - $start); }
Output for 7.1.0
0.062886953353882 0.048495054244995 0.22479486465454
Output for 7.0.14
0.079304218292236 0.056493043899536 0.23314595222473
Output for 7.0.8
0.040998935699463 0.037675142288208 0.30716705322266
Output for 7.0.7
0.038066148757935 0.034265041351318 0.2769660949707
Output for 7.0.6
0.038258075714111 0.034212827682495 0.2517421245575
Output for 7.0.5
0.083365201950073 0.051305055618286 0.2885320186615
Output for 7.0.4
0.048526048660278 0.035668134689331 0.2766010761261
Output for 7.0.3
0.056036949157715 0.039353132247925 0.27824783325195
Output for 7.0.2
0.052762985229492 0.043125867843628 0.28180480003357
Output for 7.0.1
0.045547962188721 0.036934852600098 0.27900385856628
Output for 7.0.0
0.05825400352478 0.038190126419067 0.27999496459961
Output for 5.6.28
0.15991806983948 0.10491180419922 -0.039738893508911
Output for 5.6.23
0.1118221282959 0.10248804092407 0.56418704986572
Output for 5.6.22
0.10026097297668 0.10377216339111 0.54930400848389
Output for 5.6.21
0.094583034515381 0.086061000823975 0.46370196342468
Output for 5.6.20
0.10207605361938 0.10509300231934 0.48574805259705
Output for 5.6.19
0.10436296463013 0.10545587539673 0.5494589805603
Output for 5.6.18
0.13300895690918 0.10386109352112 0.59413886070251
Output for 5.6.17
0.11816787719727 0.11186814308167 0.61938810348511
Output for 5.6.16
0.13099789619446 0.10942697525024 0.65777087211609
Output for 5.6.15
0.12501287460327 0.10578608512878 0.57165503501892
Output for 5.6.14
0.13437604904175 0.12655878067017 0.58951592445374
Output for 5.6.13
0.097531795501709 0.1054310798645 0.47274994850159
Output for 5.6.12
0.11068105697632 0.10645294189453 0.57652306556702
Output for 5.6.11
0.1012179851532 0.10145211219788 0.60849189758301
Output for 5.6.10
0.099945068359375 0.10128998756409 0.51921200752258
Output for 5.6.9
0.11459898948669 0.10165500640869 0.56578993797302
Output for 5.6.8
0.10641384124756 0.10001087188721 0.55900907516479
Output for 5.6.7
0.11414480209351 0.10189294815063 0.55446600914001
Output for 5.6.6
0.12096190452576 0.10162997245789 0.56443309783936
Output for 5.6.5
0.14409995079041 0.1379029750824 0.69950413703918
Output for 5.6.4
0.13258409500122 0.1063928604126 0.58435010910034
Output for 5.6.3
0.12674498558044 0.10348510742188 0.58805394172668
Output for 5.6.2
0.10059094429016 0.1029679775238 0.53815007209778
Output for 5.6.1
0.13292717933655 0.10576605796814 0.55915808677673
Output for 5.6.0
0.12852096557617 0.10349297523499 0.5550000667572
Output for 5.5.37
0.1262309551239 0.096101999282837 0.50166893005371
Output for 5.5.36
0.084022998809814 0.083558082580566 0.47527599334717
Output for 5.5.35
0.14152717590332 0.1170871257782 0.58785080909729
Output for 5.5.34
0.13430404663086 0.10481309890747 0.57997894287109
Output for 5.5.33
0.11188793182373 0.090021848678589 0.47967195510864
Output for 5.5.32
0.13904809951782 0.10386300086975 0.57646799087524
Output for 5.5.31
0.11772108078003 0.1032600402832 0.59016895294189
Output for 5.5.30
0.12229514122009 0.10356283187866 0.57921290397644
Output for 5.5.29
0.14051985740662 0.10669898986816 0.57867193222046
Output for 5.5.28
0.10341310501099 0.10474586486816 0.48864793777466
Output for 5.5.27
0.13638496398926 0.1055920124054 0.57062911987305
Output for 5.5.26
0.10759997367859 0.10224890708923 0.56651401519775
Output for 5.5.25
0.10116600990295 0.10017895698547 0.54010200500488
Output for 5.5.24
0.11037015914917 0.089788913726807 0.50812220573425
Output for 5.5.23
0.1365270614624 0.10489201545715 0.5686719417572
Output for 5.5.22
0.10248708724976 0.10071396827698 0.53381609916687
Output for 5.5.21
0.12096881866455 0.099169969558716 0.5810968875885
Output for 5.5.20
0.11135315895081 0.093403100967407 0.50113487243652
Output for 5.5.19
0.11988997459412 0.086905956268311 0.47722005844116
Output for 5.5.18
0.1328010559082 0.10781788825989 0.57814908027649
Output for 5.5.16
0.13178992271423 0.10361409187317 0.58150005340576
Output for 5.5.15
0.13275694847107 0.10260605812073 0.5821750164032
Output for 5.5.14
0.13603711128235 0.10227489471436 0.57657814025879
Output for 5.5.13
0.11411309242249 0.085621118545532 0.47140383720398
Output for 5.5.12
0.11883497238159 0.10211491584778 0.56512498855591
Output for 5.5.11
0.1010890007019 0.102205991745 0.56910395622253
Output for 5.5.10
0.14269495010376 0.094794034957886 0.4746561050415
Output for 5.5.9
0.12480616569519 0.10060906410217 0.57199096679688
Output for 5.5.8
0.12430191040039 0.099849939346313 0.5826518535614
Output for 5.5.7
0.128830909729 0.11039710044861 0.63091588020325
Output for 5.5.6
0.14811778068542 0.1156759262085 0.6513991355896
Output for 5.5.5
0.12023901939392 0.098350048065186 0.59516191482544
Output for 5.5.4
0.10023808479309 0.1017529964447 0.49803805351257
Output for 5.5.3
0.10267901420593 0.10192894935608 0.49557590484619
Output for 5.5.2
0.084690093994141 0.085046052932739 0.48061800003052
Output for 5.5.1
0.10175800323486 0.10004496574402 0.49229288101196
Output for 5.5.0
0.11220502853394 0.085922002792358 0.47304105758667
Output for 5.4.45
0.12840485572815 0.1015350818634 0.56981611251831
Output for 5.4.44
0.082643032073975 0.081073045730591 0.45524501800537
Output for 5.4.43
0.12279605865479 0.10247683525085 0.56252598762512
Output for 5.4.42
0.13212299346924 0.095026969909668 0.45896697044373
Output for 5.4.41
0.12583494186401 0.10109496116638 0.56429600715637
Output for 5.4.40
0.13493609428406 0.10280895233154 0.55457210540771
Output for 5.4.39
0.11294388771057 0.11005401611328 0.56763887405396
Output for 5.4.38
0.10936903953552 0.10855007171631 0.58272695541382
Output for 5.4.37
0.12330508232117 0.10191702842712 0.556391954422
Output for 5.4.36
0.11704611778259 0.099791049957275 0.56544208526611
Output for 5.4.35
0.10324811935425 0.10142707824707 0.54694318771362
Output for 5.4.34
0.12259912490845 0.10077595710754 0.55305600166321
Output for 5.4.32
0.10040497779846 0.098238229751587 0.51566696166992
Output for 5.4.31
0.12033987045288 0.099186182022095 0.55953502655029
Output for 5.4.30
0.13219690322876 0.098798990249634 0.55357980728149
Output for 5.4.29
0.11557412147522 0.10354113578796 0.55666589736938
Output for 5.4.28
0.12114691734314 0.10387492179871 0.55299997329712
Output for 5.4.27
0.1246349811554 0.10352802276611 0.5559709072113
Output for 5.4.26
0.084142923355103 0.089022874832153 0.46167802810669
Output for 5.4.25
0.10677790641785 0.088829040527344 0.46169185638428
Output for 5.4.24
0.11818599700928 0.1098690032959 0.59629201889038
Output for 5.4.23
0.092123985290527 0.090144157409668 0.50313711166382
Output for 5.4.22
0.11994600296021 0.10586190223694 0.55963706970215
Output for 5.4.21
0.083785057067871 0.087628841400146 0.46400713920593
Output for 5.4.20
0.08571982383728 0.086681127548218 0.48493504524231
Output for 5.4.19
0.098044157028198 0.10206508636475 0.52489304542542
Output for 5.4.18
0.093603849411011 0.089658975601196 0.46085095405579
Output for 5.4.17
0.11176896095276 0.10275197029114 0.56182408332825
Output for 5.4.16
0.097242832183838 0.084858894348145 0.45550799369812
Output for 5.4.15
0.1222288608551 0.10100412368774 0.54900217056274
Output for 5.4.14
0.12119698524475 0.10822510719299 0.60345697402954
Output for 5.4.13
0.10268712043762 0.10525608062744 0.50314998626709
Output for 5.4.12
0.12857389450073 0.10400605201721 0.56135010719299
Output for 5.4.11
0.11573195457458 0.10194110870361 0.55601096153259
Output for 5.4.10
0.13382196426392 0.10088586807251 0.55550599098206
Output for 5.4.9
0.11138510704041 0.10144805908203 0.5742039680481
Output for 5.4.8
0.12723803520203 0.10439991950989 0.56306099891663
Output for 5.4.7
0.10440111160278 0.086364030838013 0.45949387550354
Output for 5.4.6
0.1082649230957 0.089218139648438 0.45817089080811
Output for 5.4.5
0.13329482078552 0.10406589508057 0.55447292327881
Output for 5.4.4
0.12797617912292 0.10446691513062 0.56817102432251
Output for 5.4.3
0.1108729839325 0.10138607025146 0.56484389305115
Output for 5.4.2
0.10636210441589 0.087918996810913 0.46950387954712
Output for 5.4.1
0.13154292106628 0.10764598846436 0.55795097351074
Output for 5.4.0
0.1391749382019 0.1060688495636 0.56278109550476
Output for 5.3.29
0.096293926239014 0.11448693275452 0.46996593475342
Output for 5.3.28
0.14727401733398 0.13914799690247 0.58092784881592
Output for 5.3.27
0.10524606704712 0.14243507385254 0.61201500892639
Output for 5.3.26
0.12761497497559 0.1395058631897 0.56584978103638
Output for 5.3.25
0.094196081161499 0.11417698860168 0.46483993530273
Output for 5.3.24
0.13913297653198 0.13785481452942 0.56221294403076
Output for 5.3.23
0.12221598625183 0.11744093894958 0.4722900390625
Output for 5.3.22
0.14335608482361 0.14274096488953 0.57812595367432
Output for 5.3.21
0.12477588653564 0.11711692810059 0.47364211082458
Output for 5.3.20
0.13371706008911 0.14498209953308 0.56839680671692
Output for 5.3.19
0.14487099647522 0.15278100967407 0.60757613182068
Output for 5.3.18
0.1526460647583 0.14151811599731 0.56777906417847
Output for 5.3.17
0.11711287498474 0.12181997299194 0.4859790802002
Output for 5.3.16
0.098361968994141 0.11856818199158 0.46719002723694
Output for 5.3.15
0.16162204742432 0.14333605766296 0.57780289649963
Output for 5.3.14
0.15698790550232 0.14132905006409 0.54695701599121
Output for 5.3.13
0.11223411560059 0.1164858341217 0.45107388496399
Output for 5.3.12
0.1004810333252 0.11680293083191 0.45138192176819
Output for 5.3.11
0.12603497505188 0.11899495124817 0.44959282875061
Output for 5.3.10
0.16451215744019 0.15763092041016 0.5602400302887
Output for 5.3.9
0.13177609443665 0.13922095298767 0.54158592224121
Output for 5.3.8
0.13215684890747 0.14175295829773 0.55189394950867
Output for 5.3.7
0.12403512001038 0.14079403877258 0.54414701461792
Output for 5.3.6
0.14856195449829 0.1451780796051 0.56118702888489
Output for 5.3.5
0.13598585128784 0.11862802505493 0.44965314865112
Output for 5.3.4
0.15768194198608 0.14293599128723 0.5544638633728
Output for 5.3.3
0.13140606880188 0.14052700996399 0.56051707267761
Output for 5.3.2
0.14537501335144 0.14079880714417 0.47710990905762
Output for 5.3.1
0.14280700683594 0.14080190658569 0.55011105537415
Output for 5.3.0
0.10139298439026 0.11724209785461 0.4337420463562
Output for 5.2.17
0.13364505767822 0.15103793144226 0.52767586708069
Output for 5.2.16
0.15373516082764 0.14971685409546 0.53547596931458
Output for 5.2.15
0.16541600227356 0.1479320526123 0.544184923172
Output for 5.2.14
0.15278196334839 0.15976595878601 0.56107783317566
Output for 5.2.13
0.15073299407959 0.14349102973938 0.5036301612854
Output for 5.2.12
0.12509894371033 0.15435290336609 0.51331996917725
Output for 5.2.11
0.14067387580872 0.1702561378479 0.50505113601685
Output for 5.2.10
0.13497591018677 0.15196895599365 0.5256769657135
Output for 5.2.9
0.16845011711121 0.16374897956848 0.5371720790863
Output for 5.2.8
0.13661313056946 0.15473389625549 0.53133893013
Output for 5.2.7
0.14800095558167 0.15349817276001 0.53912091255188
Output for 5.2.6
0.12030386924744 0.1513340473175 0.45647597312927
Output for 5.2.5
0.16218280792236 0.15060520172119 0.51854610443115
Output for 5.2.4
0.1489520072937 0.15062308311462 0.5318329334259
Output for 5.2.3
0.09795093536377 0.12520217895508 0.43164491653442
Output for 5.2.2
0.11462187767029 0.12374305725098 0.42545700073242
Output for 5.2.1
0.10887789726257 0.14171695709229 0.45579409599304
Output for 5.2.0
0.11556506156921 0.15740990638733 0.44124889373779
Output for 5.1.6
0.15560698509216 0.13683700561523 0.43931412696838
Output for 5.1.5
0.12505507469177 0.14938807487488 0.55532193183899
Output for 5.1.4
0.15731120109558 0.14979696273804 0.53377509117126
Output for 5.1.3
0.14085984230042 0.14762997627258 0.51227307319641
Output for 5.1.2
0.1501841545105 0.15500092506409 0.52617812156677
Output for 5.1.1
0.1685631275177 0.14837694168091 0.49579787254333
Output for 5.1.0
0.14528298377991 0.14695405960083 0.49456596374512
Output for 5.0.5
0.28691220283508 0.25366806983948 0.66017007827759
Output for 5.0.4
0.24817800521851 0.27377700805664 0.60085415840149
Output for 5.0.3
0.26125884056091 0.23895788192749 0.64111685752869
Output for 5.0.2
0.27565097808838 0.19701886177063 0.53104400634766
Output for 5.0.1
0.2261950969696 0.24648404121399 0.55138397216797
Output for 5.0.0
0.22014713287354 0.20247483253479 0.55468583106995
Output for 4.4.9
0.227429
Output for 4.4.8
0.20888
Output for 4.4.7
0.192339
Output for 4.4.6
0.238753
Output for 4.4.5
0.208891
Output for 4.4.4
0.235856
Output for 4.4.3
0.261787
Output for 4.4.2
0.267961
Output for 4.4.1
0.236316
Output for 4.4.0
0.236262
Output for 4.3.11
0.227792
Output for 4.3.10
0.275816
Output for 4.3.9
0.289362
Output for 4.3.8
0.233049
Output for 4.3.7
0.281754
Output for 4.3.6
0.266118
Output for 4.3.5
0.214648
Output for 4.3.4
0.259382
Output for 4.3.3
0.256559
Output for 4.3.2
0.234951
Output for 4.3.1
0.263322
Output for 4.3.0
0.243604