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"; $reflectionClass = new ReflectionClass($foo); $start = microtime(true); for($i=0; $i<$rounds; $i++) { $reflectionClass->getName(); } echo (microtime(true) - $start); echo "\n"; if (class_exists('ReflectionClass')) { $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.057822942733765 0.044126987457275 -0.40490293502808
Output for 7.0.14
0.074932813644409 0.05804181098938 0.25204610824585
Output for 7.0.12
0.044529914855957 0.055205106735229 0.24018001556396
Output for 7.0.11
0.039534091949463 0.034389972686768 0.22482299804688
Output for 7.0.10
0.042845010757446 0.036038875579834 0.2238609790802
Output for 7.0.9
0.037910938262939 0.036324024200439 0.2228798866272
Output for 7.0.8
0.042328834533691 0.034725904464722 0.22961282730103
Output for 7.0.7
0.049021005630493 0.039438962936401 0.22403597831726
Output for 7.0.6
0.036105871200562 0.032083034515381 0.21358299255371
Output for 7.0.5
0.035639047622681 0.029893159866333 0.18465614318848
Output for 7.0.4
0.038722991943359 0.034404993057251 0.22266006469727
Output for 7.0.3
0.055885076522827 0.043475151062012 0.22965812683105
Output for 7.0.2
0.042196989059448 0.038618087768555 0.25221705436707
Output for 7.0.1
0.044923067092896 0.035503149032593 0.22633099555969
Output for 7.0.0
0.047667980194092 0.03786301612854 0.22547698020935
Output for hhvm-3.13.2
0.12846207618713 0.19153714179993 1.2018718719482
Output for hhvm-3.12.0
0.27300000190735 0.24296808242798 1.3671319484711
Output for hhvm-3.10.0
0.15341401100159 0.22843599319458 1.7675499916077
Output for 5.6.28
0.16191506385803 0.10677695274353 -0.060318946838379
Output for 5.6.25
0.11032700538635 0.10067200660706 0.45029211044312
Output for 5.6.24
0.10799479484558 0.10334897041321 0.45965003967285
Output for 5.6.23
0.12679600715637 0.10401391983032 0.45765495300293
Output for 5.6.22
0.10228800773621 0.10304498672485 0.45279312133789
Output for 5.6.21
0.094857931137085 0.085919857025146 0.37622308731079
Output for 5.6.20
0.10415887832642 0.10282707214355 0.45083999633789
Output for 5.6.19
0.10381603240967 0.10554099082947 0.45648598670959
Output for 5.6.18
0.10834407806396 0.10267806053162 0.48551297187805
Output for 5.6.17
0.12382984161377 0.1044499874115 0.45062208175659
Output for 5.6.16
0.10568809509277 0.10234999656677 0.48990893363953
Output for 5.6.15
0.086931943893433 0.085783004760742 0.37807679176331
Output for 5.6.14
0.10065603256226 0.1059250831604 0.50162792205811
Output for 5.6.13
0.1202290058136 0.10493397712708 0.45709204673767
Output for 5.6.12
0.11377191543579 0.10557818412781 0.46797394752502
Output for 5.6.11
0.13526797294617 0.10039496421814 0.45715999603271
Output for 5.6.10
0.10664916038513 0.10146808624268 0.45469403266907
Output for 5.6.9
0.12031888961792 0.11727380752563 0.52582907676697
Output for 5.6.8
0.11430501937866 0.099868059158325 0.4469838142395
Output for 5.6.7
0.12496900558472 0.10189700126648 0.45104002952576
Output for 5.6.6
0.10494709014893 0.10016107559204 0.45319104194641
Output for 5.6.5
0.09673810005188 0.1020839214325 0.44408106803894
Output for 5.6.4
0.11155414581299 0.10597586631775 0.46584701538086
Output for 5.6.3
0.12191486358643 0.10193800926208 0.45671701431274
Output for 5.6.2
0.12452507019043 0.10358214378357 0.45805191993713
Output for 5.6.1
0.14432287216187 0.10806083679199 0.46465492248535
Output for 5.6.0
0.1122899055481 0.10319685935974 0.45243000984192
Output for 5.5.38
0.13234519958496 0.10297298431396 0.47043895721436
Output for 5.5.37
0.1322910785675 0.1012499332428 0.46338081359863
Output for 5.5.36
0.11388397216797 0.10002613067627 0.48537921905518
Output for 5.5.35
0.10605907440186 0.10549092292786 0.39852905273438
Output for 5.5.34
0.083654880523682 0.082134962081909 0.38649082183838
Output for 5.5.33
0.11131811141968 0.10125303268433 0.46900105476379
Output for 5.5.32
0.12923407554626 0.10443806648254 0.46815085411072
Output for 5.5.31
0.11139297485352 0.10361504554749 0.47433686256409
Output for 5.5.30
0.13109803199768 0.12034010887146 0.52371597290039
Output for 5.5.29
0.11236214637756 0.10277700424194 0.46822881698608
Output for 5.5.28
0.13464307785034 0.10100102424622 0.4854941368103
Output for 5.5.27
0.11293005943298 0.12251615524292 0.52544403076172
Output for 5.5.26
0.13628506660461 0.10240697860718 0.47048616409302
Output for 5.5.25
0.1088809967041 0.098428964614868 0.47765803337097
Output for 5.5.24
0.11435103416443 0.11389994621277 0.53686308860779
Output for 5.5.23
0.10317707061768 0.1031551361084 0.40625619888306
Output for 5.5.22
0.13512206077576 0.10054993629456 0.46011114120483
Output for 5.5.21
0.12332892417908 0.09958291053772 0.47028803825378
Output for 5.5.20
0.13028907775879 0.10207009315491 0.45828485488892
Output for 5.5.19
0.13233685493469 0.099859952926636 0.46312212944031
Output for 5.5.18
0.11991786956787 0.10249710083008 0.46535420417786
Output for 5.5.16
0.11909103393555 0.10421895980835 0.46965503692627
Output for 5.5.15
0.12206387519836 0.10108995437622 0.46352696418762
Output for 5.5.14
0.12488603591919 0.10120105743408 0.45989394187927
Output for 5.5.13
0.12984108924866 0.10323190689087 0.46359419822693
Output for 5.5.12
0.10276222229004 0.08915114402771 0.39144206047058
Output for 5.5.11
0.10116100311279 0.10222005844116 0.43651604652405
Output for 5.5.10
0.12209701538086 0.088047981262207 0.3799569606781
Output for 5.5.9
0.10737609863281 0.098664999008179 0.46435308456421
Output for 5.5.8
0.11001515388489 0.10810995101929 0.45532608032227
Output for 5.5.7
0.13233494758606 0.10231995582581 0.46208190917969
Output for 5.5.6
0.12927198410034 0.10339689254761 0.47385096549988
Output for 5.5.5
0.163733959198 0.10317611694336 0.46335911750793
Output for 5.5.4
0.1629650592804 0.10274696350098 0.46289896965027
Output for 5.5.3
0.17030787467957 0.10704803466797 0.46755909919739
Output for 5.5.2
0.1326220035553 0.10281801223755 0.45910787582397
Output for 5.5.1
0.11468100547791 0.10088109970093 0.4671471118927
Output for 5.5.0
0.091155052185059 0.084135055541992 0.38088607788086
Output for 5.4.45
0.11544680595398 0.10042285919189 0.4562680721283
Output for 5.4.44
0.12858605384827 0.10199403762817 0.4546000957489
Output for 5.4.43
0.10248112678528 0.10629987716675 0.45721292495728
Output for 5.4.42
0.10481309890747 0.10336494445801 0.45268487930298
Output for 5.4.41
0.1082980632782 0.10052394866943 0.45741105079651
Output for 5.4.40
0.12956500053406 0.1037859916687 0.4760410785675
Output for 5.4.39
0.12186408042908 0.10143899917603 0.45593905448914
Output for 5.4.38
0.12849092483521 0.099695920944214 0.45479798316956
Output for 5.4.37
0.12371897697449 0.1009669303894 0.45100593566895
Output for 5.4.36
0.11826014518738 0.10068702697754 0.4514479637146
Output for 5.4.35
0.11822414398193 0.10184693336487 0.45846700668335
Output for 5.4.34
0.11512899398804 0.10212206840515 0.4527051448822
Output for 5.4.32
0.11101794242859 0.099752902984619 0.45273804664612
Output for 5.4.31
0.13292288780212 0.10207509994507 0.44662404060364
Output for 5.4.30
0.11453199386597 0.099278926849365 0.45138382911682
Output for 5.4.29
0.11855101585388 0.10330820083618 0.46099710464478
Output for 5.4.28
0.11539912223816 0.10679292678833 0.45312595367432
Output for 5.4.27
0.12137699127197 0.10299611091614 0.37445688247681
Output for 5.4.26
0.11107301712036 0.12163901329041 0.52968192100525
Output for 5.4.25
0.10142588615417 0.10019111633301 0.45979285240173
Output for 5.4.24
0.099809169769287 0.1009840965271 0.45364093780518
Output for 5.4.23
0.1102249622345 0.1014199256897 0.45210003852844
Output for 5.4.22
0.12483596801758 0.10832095146179 0.45525097846985
Output for 5.4.21
0.1388828754425 0.10758399963379 0.45715308189392
Output for 5.4.20
0.11605501174927 0.11797714233398 0.45851993560791
Output for 5.4.19
0.10049104690552 0.10244798660278 0.45713806152344
Output for 5.4.18
0.1378960609436 0.105220079422 0.45901489257812
Output for 5.4.17
0.10101914405823 0.10329389572144 0.44477510452271
Output for 5.4.16
0.11424398422241 0.10224199295044 0.45361518859863
Output for 5.4.15
0.12401986122131 0.10143399238586 0.44617486000061
Output for 5.4.14
0.15066385269165 0.10140490531921 0.45670509338379
Output for 5.4.13
0.13168716430664 0.10454392433167 0.47683191299438
Output for 5.4.12
0.11954188346863 0.10581398010254 0.45407891273499
Output for 5.4.11
0.13683104515076 0.10435104370117 0.46058392524719
Output for 5.4.10
0.13203406333923 0.10247492790222 0.44947099685669
Output for 5.4.9
0.10422492027283 0.1015419960022 0.45866203308105
Output for 5.4.8
0.10450291633606 0.10284805297852 0.45467901229858
Output for 5.4.7
0.1206419467926 0.10505199432373 0.45865392684937
Output for 5.4.6
0.13843512535095 0.10395908355713 0.45360112190247
Output for 5.4.5
0.13278794288635 0.10396504402161 0.44957590103149
Output for 5.4.4
0.090040922164917 0.094942092895508 0.42635798454285
Output for 5.4.3
0.11824202537537 0.10353589057922 0.45887398719788
Output for 5.4.2
0.13170695304871 0.10362792015076 0.45812702178955
Output for 5.4.1
0.12584900856018 0.10238599777222 0.45348286628723
Output for 5.4.0
0.11400294303894 0.10274004936218 0.45488691329956
Output for 5.3.29
0.13544297218323 0.14155006408691 0.53207921981812
Output for 5.3.28
0.13909602165222 0.13896608352661 0.52756595611572
Output for 5.3.27
0.13079404830933 0.13909697532654 0.54849696159363
Output for 5.3.26
0.12588119506836 0.13942885398865 0.5457079410553
Output for 5.3.25
0.14899301528931 0.13969993591309 0.51429295539856
Output for 5.3.24
0.14874315261841 0.13779187202454 0.51072907447815
Output for 5.3.23
0.13466191291809 0.13778209686279 0.52583909034729
Output for 5.3.22
0.1504340171814 0.14017105102539 0.53456091880798
Output for 5.3.21
0.14086198806763 0.16172409057617 0.5615029335022
Output for 5.3.20
0.15766215324402 0.14438486099243 0.52512288093567
Output for 5.3.19
0.1310441493988 0.14084601402283 0.51486301422119
Output for 5.3.18
0.14365696907043 0.14135789871216 0.5449161529541
Output for 5.3.17
0.12453818321228 0.13843297958374 0.50964403152466
Output for 5.3.16
0.15648913383484 0.1437361240387 0.52025508880615
Output for 5.3.15
0.14029383659363 0.14522314071655 0.52082896232605
Output for 5.3.14
0.13611793518066 0.16020607948303 0.5804979801178
Output for 5.3.13
0.13140082359314 0.14088296890259 0.4985179901123
Output for 5.3.12
0.14649605751038 0.14090991020203 0.50986981391907
Output for 5.3.11
0.15526795387268 0.14183306694031 0.49416184425354
Output for 5.3.10
0.12779998779297 0.14349293708801 0.49093890190125
Output for 5.3.9
0.12655186653137 0.13808989524841 0.49450397491455
Output for 5.3.8
0.16891098022461 0.1415810585022 0.49686598777771
Output for 5.3.7
0.12144994735718 0.14012098312378 0.49111390113831
Output for 5.3.6
0.13228011131287 0.14187979698181 0.50001287460327
Output for 5.3.5
0.14035320281982 0.14499402046204 0.49054193496704
Output for 5.3.4
0.12046599388123 0.14317798614502 0.44628000259399
Output for 5.3.3
0.13575005531311 0.13977098464966 0.49264621734619
Output for 5.3.2
0.12224912643433 0.1399998664856 0.43557500839233
Output for 5.3.1
0.13762617111206 0.15781307220459 0.56663084030151
Output for 5.3.0
0.154620885849 0.14100313186646 0.47049784660339
Output for 5.2.17
0.13762998580933 0.15281391143799 0.47683000564575
Output for 5.2.16
0.14130401611328 0.14718389511108 0.49571490287781
Output for 5.2.15
0.13571810722351 0.1679801940918 0.57455992698669
Output for 5.2.14
0.11884617805481 0.14475798606873 0.44741201400757
Output for 5.2.13
0.11981296539307 0.14384913444519 0.45126605033875
Output for 5.2.12
0.12123918533325 0.15206599235535 0.45137310028076
Output for 5.2.11
0.15743803977966 0.14998412132263 0.46547389030457
Output for 5.2.10
0.15435099601746 0.15063309669495 0.47572183609009
Output for 5.2.9
0.14381003379822 0.15899586677551 0.47525000572205
Output for 5.2.8
0.14942288398743 0.15225982666016 0.48260879516602
Output for 5.2.7
0.13405299186707 0.1515691280365 0.47180795669556
Output for 5.2.6
0.14658498764038 0.17660307884216 0.54023909568787
Output for 5.2.5
0.16904807090759 0.14984512329102 0.46345210075378
Output for 5.2.4
0.15068793296814 0.15000700950623 0.47336316108704
Output for 5.2.3
0.14949297904968 0.14999198913574 0.47767114639282
Output for 5.2.2
0.16299295425415 0.14637184143066 0.46119904518127
Output for 5.2.1
0.13569498062134 0.14367198944092 0.46430587768555
Output for 5.2.0
0.15473794937134 0.15352988243103 0.47576713562012
Output for 5.1.6
0.14750003814697 0.14836406707764 0.46126198768616
Output for 5.1.5
0.13040399551392 0.15963506698608 0.52076506614685
Output for 5.1.4
0.14811587333679 0.14774799346924 0.45094895362854
Output for 5.1.3
0.15309810638428 0.14565682411194 0.48374104499817
Output for 5.1.2
0.15098285675049 0.1421971321106 0.42805004119873
Output for 5.1.1
0.12684893608093 0.14890885353088 0.4286470413208
Output for 5.1.0
0.16330003738403 0.14671301841736 0.44666290283203
Output for 5.0.5
0.25721597671509 0.2528088092804 0.59141397476196
Output for 5.0.4
0.27000403404236 0.25568604469299 0.58180284500122
Output for 5.0.3
0.23252010345459 0.24167108535767 0.55607008934021
Output for 5.0.2
0.31668496131897 0.32669115066528 0.65057301521301
Output for 5.0.1
0.27760982513428 0.24223518371582 0.5843448638916
Output for 5.0.0
0.3099148273468 0.24540305137634 0.58681201934814
Output for 4.4.9
0.26878 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.4.8
0.233831 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.4.7
0.222588 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.4.6
0.247651 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.4.5
0.232634 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.4.4
0.26687 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.4.3
0.248454 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.4.2
0.269163 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.4.1
0.245892 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.4.0
0.235048 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.11
0.247871 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.10
0.271169 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.9
0.255708 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.8
0.225116 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.7
0.246014 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.6
0.25377 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.5
0.257713 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.4
0.23603 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.3
0.231782 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.2
0.236652 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Process exited with code 255.
Output for 4.3.1
0.258485 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17
Output for 4.3.0
0.254342 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/QSKqI on line 17