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"; $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.0363609790802 0.032124996185303 0.19361305236816
Output for 7.0.14
0.073639154434204 0.069566965103149 0.092770099639893
Output for 7.0.7
0.041643857955933 0.034026861190796 0.23209810256958
Output for 7.0.6
0.038480043411255 0.036490201950073 0.27783989906311
Output for 7.0.5
0.047924995422363 0.037916898727417 0.27759003639221
Output for 7.0.4
0.05712103843689 0.054363965988159 0.3252739906311
Output for 7.0.3
0.036758184432983 0.031345844268799 0.22989296913147
Output for 7.0.2
0.06086277961731 0.048251867294312 0.29427289962769
Output for 7.0.1
0.040964126586914 0.036371946334839 0.2853889465332
Output for 7.0.0
0.035784959793091 0.030514001846313 0.23132801055908
Output for hhvm-3.12.0
0.082420110702515 0.11430692672729 0.68431091308594
Output for hhvm-3.10.0
0.091733932495117 0.1408360004425 0.78438210487366
Output for 5.6.28
0.16115999221802 0.10617899894714 -0.04640007019043
Output for 5.6.22
0.10060906410217 0.10414409637451 0.51006889343262
Output for 5.6.21
0.095505952835083 0.085989952087402 0.46430087089539
Output for 5.6.20
0.11727285385132 0.1037700176239 0.58821415901184
Output for 5.6.19
0.11735582351685 0.10374999046326 0.56109809875488
Output for 5.6.18
0.13715505599976 0.11448812484741 0.47642993927002
Output for 5.6.17
0.12281322479248 0.10294914245605 0.55672192573547
Output for 5.6.16
0.1328649520874 0.10579395294189 0.62191891670227
Output for 5.6.15
0.12730383872986 0.10761094093323 0.56519317626953
Output for 5.6.14
0.12692499160767 0.10453605651855 0.55978298187256
Output for 5.6.13
0.10446810722351 0.10559988021851 0.55714702606201
Output for 5.6.12
0.11834597587585 0.10468411445618 0.59395909309387
Output for 5.6.11
0.1038658618927 0.085031032562256 0.47522902488708
Output for 5.6.10
0.11486411094666 0.10102200508118 0.56390786170959
Output for 5.6.9
0.12991786003113 0.10713791847229 0.58798098564148
Output for 5.6.8
0.12523603439331 0.099768877029419 0.5603289604187
Output for 5.6.7
0.10997414588928 0.10290503501892 0.5528359413147
Output for 5.6.6
0.13661289215088 0.10608100891113 0.59122204780579
Output for 5.6.5
0.12272906303406 0.10162687301636 0.56581592559814
Output for 5.6.4
0.10678601264954 0.10296607017517 0.56656408309937
Output for 5.6.3
0.11259293556213 0.1034688949585 0.57185506820679
Output for 5.6.2
0.12898802757263 0.10705900192261 0.57905507087708
Output for 5.6.1
0.098547220230103 0.096503019332886 0.46552395820618
Output for 5.6.0
0.08160400390625 0.085079193115234 0.46343898773193
Output for 5.5.36
0.10070204734802 0.099202156066895 0.47737693786621
Output for 5.5.35
0.090060949325562 0.088287115097046 0.50299692153931
Output for 5.5.34
0.11809420585632 0.10224795341492 0.57437086105347
Output for 5.5.33
0.13538789749146 0.1072678565979 0.60496807098389
Output for 5.5.32
0.11075615882874 0.10587310791016 0.57585787773132
Output for 5.5.31
0.14055204391479 0.10507702827454 0.57915091514587
Output for 5.5.30
0.12249994277954 0.10308909416199 0.57891392707825
Output for 5.5.29
0.1402702331543 0.10910701751709 0.62273907661438
Output for 5.5.28
0.12249803543091 0.10019779205322 0.57998991012573
Output for 5.5.27
0.085448026657104 0.084926843643188 0.4679172039032
Output for 5.5.26
0.12782001495361 0.10928010940552 0.58717083930969
Output for 5.5.25
0.13867497444153 0.10490489006042 0.60417318344116
Output for 5.5.24
0.11877393722534 0.095784902572632 0.56845498085022
Output for 5.5.23
0.085446119308472 0.084788084030151 0.47026991844177
Output for 5.5.22
0.10463690757751 0.10315179824829 0.51545786857605
Output for 5.5.21
0.12458491325378 0.091779947280884 0.51971387863159
Output for 5.5.20
0.12635493278503 0.10230708122253 0.56920194625854
Output for 5.5.19
0.12300896644592 0.10018682479858 0.57716202735901
Output for 5.5.18
0.11664414405823 0.10268402099609 0.57543897628784
Output for 5.5.16
0.10161995887756 0.10182189941406 0.5124249458313
Output for 5.5.15
0.090199947357178 0.087199926376343 0.48753499984741
Output for 5.5.14
0.10811901092529 0.086611032485962 0.48876905441284
Output for 5.5.13
0.12156200408936 0.10255002975464 0.57225394248962
Output for 5.5.12
0.13273692131042 0.10203695297241 0.56275200843811
Output for 5.5.11
0.13301587104797 0.11023497581482 0.60339903831482
Output for 5.5.10
0.11723113059998 0.10154986381531 0.56983590126038
Output for 5.5.9
0.14015889167786 0.10675406455994 0.58332300186157
Output for 5.5.8
0.13228011131287 0.098299026489258 0.57657289505005
Output for 5.5.7
0.10300397872925 0.088912963867188 0.47621393203735
Output for 5.5.6
0.10483002662659 0.084801912307739 0.47533106803894
Output for 5.5.5
0.14020299911499 0.1031289100647 0.5870840549469
Output for 5.5.4
0.13344216346741 0.10680913925171 0.59086799621582
Output for 5.5.3
0.10024905204773 0.098742961883545 0.49884796142578
Output for 5.5.2
0.10238695144653 0.083587884902954 0.50456500053406
Output for 5.5.1
0.13835597038269 0.10252380371094 0.57081985473633
Output for 5.5.0
0.11805105209351 0.12896704673767 0.57225394248962
Output for 5.4.45
0.11363291740417 0.10019683837891 0.54827189445496
Output for 5.4.44
0.1020610332489 0.10289001464844 0.46772384643555
Output for 5.4.43
0.13525295257568 0.10557889938354 0.56178092956543
Output for 5.4.42
0.12418913841248 0.10152196884155 0.56323313713074
Output for 5.4.41
0.12720489501953 0.10077595710754 0.5587420463562
Output for 5.4.40
0.12601208686829 0.10210108757019 0.55866503715515
Output for 5.4.39
0.13095903396606 0.10076308250427 0.55886602401733
Output for 5.4.38
0.13406300544739 0.1033821105957 0.55742311477661
Output for 5.4.37
0.11010384559631 0.091772079467773 0.47763085365295
Output for 5.4.36
0.096565008163452 0.094942092895508 0.48713994026184
Output for 5.4.35
0.13574600219727 0.1029269695282 0.4624080657959
Output for 5.4.34
0.12541389465332 0.10076689720154 0.55737590789795
Output for 5.4.32
0.088053941726685 0.087334156036377 0.48749613761902
Output for 5.4.31
0.099148035049438 0.099485158920288 0.47407698631287
Output for 5.4.30
0.13419795036316 0.10219311714172 0.55331802368164
Output for 5.4.29
0.12933897972107 0.1147620677948 0.59054589271545
Output for 5.4.28
0.13688397407532 0.11122989654541 0.55569219589233
Output for 5.4.27
0.11629104614258 0.10278797149658 0.55103898048401
Output for 5.4.26
0.12812995910645 0.1051070690155 0.55489206314087
Output for 5.4.25
0.1289210319519 0.10346984863281 0.55953598022461
Output for 5.4.24
0.14266514778137 0.10414290428162 0.5552339553833
Output for 5.4.23
0.13544702529907 0.10515689849854 0.55774307250977
Output for 5.4.22
0.088413000106812 0.093443155288696 0.4577898979187
Output for 5.4.21
0.086085796356201 0.087998867034912 0.46236515045166
Output for 5.4.20
0.13348698616028 0.11270618438721 0.56866908073425
Output for 5.4.19
0.1203920841217 0.10283994674683 0.55428504943848
Output for 5.4.18
0.12166905403137 0.10372710227966 0.56024408340454
Output for 5.4.17
0.12330007553101 0.10305905342102 0.55664896965027
Output for 5.4.16
0.10198402404785 0.10158109664917 0.51179695129395
Output for 5.4.15
0.13884282112122 0.10426306724548 0.54901504516602
Output for 5.4.14
0.13378190994263 0.10262298583984 0.55891299247742
Output for 5.4.13
0.12512111663818 0.1064248085022 0.58294486999512
Output for 5.4.12
0.10308480262756 0.10450196266174 0.55101299285889
Output for 5.4.11
0.1299831867218 0.10229086875916 0.47362208366394
Output for 5.4.10
0.12212014198303 0.10083985328674 0.55479788780212
Output for 5.4.9
0.11674785614014 0.1016058921814 0.55835294723511
Output for 5.4.8
0.13457298278809 0.10320591926575 0.55753207206726
Output for 5.4.7
0.12197518348694 0.10594296455383 0.5724048614502
Output for 5.4.6
0.14067506790161 0.1052131652832 0.56664204597473
Output for 5.4.5
0.1158709526062 0.10018682479858 0.55178618431091
Output for 5.4.4
0.10283899307251 0.10240697860718 0.54186797142029
Output for 5.4.3
0.10997295379639 0.11877489089966 0.60951995849609
Output for 5.4.2
0.098298072814941 0.10032606124878 0.48905301094055
Output for 5.4.1
0.10163903236389 0.10193705558777 0.54338383674622
Output for 5.4.0
0.089284181594849 0.092931985855103 0.48618602752686
Output for 5.3.29
0.096916198730469 0.1152241230011 0.47085785865784
Output for 5.3.28
0.13873410224915 0.13774991035461 0.57621502876282
Output for 5.3.27
0.16266202926636 0.14382410049438 0.59078001976013
Output for 5.3.26
0.15165996551514 0.14061808586121 0.56487393379211
Output for 5.3.25
0.13671016693115 0.13837695121765 0.56443405151367
Output for 5.3.24
0.16101789474487 0.1382429599762 0.56320786476135
Output for 5.3.23
0.15791606903076 0.14102292060852 0.57593297958374
Output for 5.3.22
0.12590789794922 0.1467649936676 0.55711889266968
Output for 5.3.21
0.10122203826904 0.12065410614014 0.49473285675049
Output for 5.3.20
0.15606904029846 0.14416694641113 0.61316704750061
Output for 5.3.19
0.13132381439209 0.14056205749512 0.56003189086914
Output for 5.3.18
0.12083601951599 0.11833000183105 0.46398305892944
Output for 5.3.17
0.14406204223633 0.13930702209473 0.57456207275391
Output for 5.3.16
0.13048386573792 0.13828301429749 0.46745800971985
Output for 5.3.15
0.16074085235596 0.1431519985199 0.5701539516449
Output for 5.3.14
0.16393303871155 0.15925598144531 0.63210201263428
Output for 5.3.13
0.12145304679871 0.16271090507507 0.50009417533875
Output for 5.3.12
0.1201388835907 0.12898397445679 0.45243382453918
Output for 5.3.11
0.10280585289001 0.12020206451416 0.47416496276855
Output for 5.3.10
0.11964702606201 0.14431214332581 0.49697208404541
Output for 5.3.9
0.11858296394348 0.13831806182861 0.46842193603516
Output for 5.3.8
0.11603403091431 0.11700892448425 0.45345306396484
Output for 5.3.7
0.131019115448 0.14721083641052 0.55879807472229
Output for 5.3.6
0.1374819278717 0.14385390281677 0.56829690933228
Output for 5.3.5
0.10323214530945 0.11600708961487 0.45080089569092
Output for 5.3.4
0.16860604286194 0.14429306983948 0.55243301391602
Output for 5.3.3
0.15171098709106 0.14534711837769 0.54965400695801
Output for 5.3.2
0.13857698440552 0.14723014831543 0.53765177726746
Output for 5.3.1
0.16806578636169 0.14265489578247 0.55953693389893
Output for 5.3.0
0.13365912437439 0.14265894889832 0.52252697944641
Output for 5.2.17
0.16358208656311 0.1479709148407 0.4349799156189
Output for 5.2.16
0.13300108909607 0.1510329246521 0.53251600265503
Output for 5.2.15
0.14777898788452 0.15082788467407 0.53489303588867
Output for 5.2.14
0.16119408607483 0.14754509925842 0.54708909988403
Output for 5.2.13
0.15171504020691 0.13893818855286 0.5002019405365
Output for 5.2.12
0.11771106719971 0.13355207443237 0.43539094924927
Output for 5.2.11
0.16974592208862 0.15363192558289 0.51111483573914
Output for 5.2.10
0.16850900650024 0.15365099906921 0.52685499191284
Output for 5.2.9
0.1188759803772 0.15448713302612 0.45473504066467
Output for 5.2.8
0.1503689289093 0.15542888641357 0.53416013717651
Output for 5.2.7
0.12083601951599 0.15438199043274 0.48067593574524
Output for 5.2.6
0.14972305297852 0.15792012214661 0.53678107261658
Output for 5.2.5
0.13583612442017 0.14835000038147 0.52056002616882
Output for 5.2.4
0.11046886444092 0.12383008003235 0.43711805343628
Output for 5.2.3
0.15185594558716 0.14956378936768 0.5382969379425
Output for 5.2.2
0.16448092460632 0.15086102485657 0.51794290542603
Output for 5.2.1
0.13456583023071 0.14527606964111 0.52020406723022
Output for 5.2.0
0.14495611190796 0.1601710319519 0.52220106124878
Output for 5.1.6
0.12349700927734 0.1288161277771 0.417396068573
Output for 5.1.5
0.11692094802856 0.12664604187012 0.42488503456116
Output for 5.1.4
0.099364995956421 0.12129592895508 0.42990493774414
Output for 5.1.3
0.15971899032593 0.12314295768738 0.44147300720215
Output for 5.1.2
0.17152690887451 0.14886999130249 0.48453593254089
Output for 5.1.1
0.16187405586243 0.15190601348877 0.52907299995422
Output for 5.1.0
0.16391801834106 0.14797210693359 0.50333881378174
Output for 5.0.5
0.28100514411926 0.25253701210022 0.64586710929871
Output for 5.0.4
0.30165505409241 0.26699686050415 0.68260812759399
Output for 5.0.3
0.22337508201599 0.20460391044617 0.58222985267639
Output for 5.0.2
0.25918388366699 0.2365870475769 0.60951590538025
Output for 5.0.1
0.27434992790222 0.2443470954895 0.63334107398987
Output for 5.0.0
0.2697811126709 0.25637006759644 0.65545320510864
Output for 4.4.9
0.265354 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.4.8
0.253174 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.4.7
0.268812 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.4.6
0.272082 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.4.5
0.276957 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.4.4
0.243285 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.4.3
0.267221 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.4.2
0.24533 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.4.1
0.248089 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.4.0
0.239509 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.11
0.244255 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.10
0.265127 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.9
0.264941 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.8
0.257398 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.7
0.230396 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.6
0.218879 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.5
0.258081 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.4
0.264064 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.3
0.264246 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.2
0.231671 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Process exited with code 255.
Output for 4.3.1
0.221155 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17
Output for 4.3.0
0.269049 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/14eGA on line 17