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"; $start = microtime(true); for($i=0; $i<$rounds; $i++) { $reflection = new ReflectionClass($foo); $reflection->getName(); } echo (microtime(true) - $start);
Output for 7.1.0
0.051313161849976 0.21134209632874
Output for 7.0.14
0.072842836380005 0.24313688278198
Output for 7.0.12
0.060469150543213 0.24237608909607
Output for 7.0.7
0.049335956573486 0.28396511077881
Output for 7.0.6
0.053544044494629 0.28624320030212
Output for 7.0.5
0.047749042510986 0.28264403343201
Output for 7.0.4
0.045445203781128 0.25422692298889
Output for 7.0.3
0.049553871154785 0.26331686973572
Output for 7.0.2
0.035413026809692 0.23796415328979
Output for 7.0.1
0.048290014266968 0.29454612731934
Output for 7.0.0
0.03432297706604 0.25552701950073
Output for 5.6.28
-0.074565887451172 -0.4239239692688
Output for 5.6.22
0.11586904525757 0.5533812046051
Output for 5.6.21
0.13048505783081 0.58055114746094
Output for 5.6.20
0.13266706466675 0.57258081436157
Output for 5.6.19
0.11493992805481 0.54043388366699
Output for 5.6.18
0.13870096206665 0.55949187278748
Output for 5.6.17
0.12971210479736 0.58827614784241
Output for 5.6.16
0.082643985748291 0.48547077178955
Output for 5.6.15
0.10039305686951 0.50178599357605
Output for 5.6.14
0.1278920173645 0.5638120174408
Output for 5.6.13
0.11632704734802 0.46871495246887
Output for 5.6.12
0.10422897338867 0.47179317474365
Output for 5.6.11
0.12042903900146 0.48210597038269
Output for 5.6.10
0.12114405632019 0.56444621086121
Output for 5.6.9
0.10296010971069 0.56279993057251
Output for 5.6.8
0.12850189208984 0.56182813644409
Output for 5.6.7
0.1255259513855 0.55434894561768
Output for 5.6.6
0.11840081214905 0.56120920181274
Output for 5.6.5
0.09642505645752 0.54368305206299
Output for 5.6.4
0.12036919593811 0.56761193275452
Output for 5.6.3
0.10057687759399 0.48935389518738
Output for 5.6.2
0.12677097320557 0.6006920337677
Output for 5.6.1
0.12599587440491 0.59083104133606
Output for 5.6.0
0.13164019584656 0.56829190254211
Output for 5.5.36
0.13716793060303 0.57425284385681
Output for 5.5.35
0.12226796150208 0.58128714561462
Output for 5.5.34
0.12961101531982 0.57105612754822
Output for 5.5.33
0.12171196937561 0.50583600997925
Output for 5.5.32
0.13441181182861 0.57362198829651
Output for 5.5.31
0.10184502601624 0.48454093933105
Output for 5.5.30
0.084707975387573 0.47773408889771
Output for 5.5.29
0.099873065948486 0.57843708992004
Output for 5.5.28
0.086182117462158 0.47370100021362
Output for 5.5.27
0.11446285247803 0.56929087638855
Output for 5.5.26
0.10748600959778 0.57521486282349
Output for 5.5.25
0.11769890785217 0.60491895675659
Output for 5.5.24
0.11481618881226 0.56723499298096
Output for 5.5.23
0.12049698829651 0.59007906913757
Output for 5.5.22
0.1379029750824 0.57402896881104
Output for 5.5.21
0.1171669960022 0.58764004707336
Output for 5.5.20
0.14418601989746 0.60063099861145
Output for 5.5.19
0.13912105560303 0.60719299316406
Output for 5.5.18
0.12260103225708 0.60661602020264
Output for 5.5.16
0.11130499839783 0.56191301345825
Output for 5.5.15
0.13261103630066 0.59762096405029
Output for 5.5.14
0.11776804924011 0.57385492324829
Output for 5.5.13
0.13817381858826 0.57097411155701
Output for 5.5.12
0.10179400444031 0.50510096549988
Output for 5.5.11
0.11156296730042 0.47449207305908
Output for 5.5.10
0.13087105751038 0.57418704032898
Output for 5.5.9
0.10334014892578 0.5649049282074
Output for 5.5.8
0.12055706977844 0.57244086265564
Output for 5.5.7
0.11589193344116 0.57867789268494
Output for 5.5.6
0.14234495162964 0.57720398902893
Output for 5.5.5
0.10548114776611 0.50012707710266
Output for 5.5.4
0.085488080978394 0.49780893325806
Output for 5.5.3
0.087269067764282 0.47918820381165
Output for 5.5.2
0.14252185821533 0.57968783378601
Output for 5.5.1
0.10298109054565 0.47390389442444
Output for 5.5.0
0.14425706863403 0.484787940979
Output for 5.4.45
0.09630012512207 0.46053981781006
Output for 5.4.44
0.095054149627686 0.45773601531982
Output for 5.4.43
0.13275504112244 0.56346106529236
Output for 5.4.42
0.12821698188782 0.55558800697327
Output for 5.4.41
0.11470317840576 0.47525382041931
Output for 5.4.40
0.13524889945984 0.55626106262207
Output for 5.4.39
0.12245893478394 0.5578179359436
Output for 5.4.38
0.12486100196838 0.55677890777588
Output for 5.4.37
0.11326789855957 0.56192684173584
Output for 5.4.36
0.11914205551147 0.56001710891724
Output for 5.4.35
0.12221789360046 0.56648898124695
Output for 5.4.34
0.11300587654114 0.55614709854126
Output for 5.4.32
0.097731113433838 0.48222494125366
Output for 5.4.31
0.13064694404602 0.55746817588806
Output for 5.4.30
0.12467503547668 0.57761693000793
Output for 5.4.29
0.13009905815125 0.60998296737671
Output for 5.4.28
0.1206271648407 0.55441808700562
Output for 5.4.27
0.13496708869934 0.5767719745636
Output for 5.4.26
0.10849905014038 0.55847406387329
Output for 5.4.25
0.12781095504761 0.56347584724426
Output for 5.4.24
0.13110399246216 0.55937314033508
Output for 5.4.23
0.12924194335938 0.55996084213257
Output for 5.4.22
0.13031601905823 0.57719612121582
Output for 5.4.21
0.11437392234802 0.55857706069946
Output for 5.4.20
0.1100709438324 0.56433486938477
Output for 5.4.19
0.09698486328125 0.46792507171631
Output for 5.4.18
0.1079158782959 0.51955413818359
Output for 5.4.17
0.085345029830933 0.46358203887939
Output for 5.4.16
0.14694809913635 0.59426784515381
Output for 5.4.15
0.12682795524597 0.55322599411011
Output for 5.4.14
0.13827681541443 0.56029295921326
Output for 5.4.13
0.11784386634827 0.5912139415741
Output for 5.4.12
0.1367130279541 0.5652539730072
Output for 5.4.11
0.13660287857056 0.55703711509705
Output for 5.4.10
0.10506796836853 0.55488801002502
Output for 5.4.9
0.13583898544312 0.58358502388
Output for 5.4.8
0.13263392448425 0.56033992767334
Output for 5.4.7
0.11425685882568 0.57034587860107
Output for 5.4.6
0.13880014419556 0.56049799919128
Output for 5.4.5
0.1399359703064 0.55628395080566
Output for 5.4.4
0.099529027938843 0.486487865448
Output for 5.4.3
0.12278604507446 0.56424188613892
Output for 5.4.2
0.13017010688782 0.58055400848389
Output for 5.4.1
0.096267938613892 0.4593620300293
Output for 5.4.0
0.10130500793457 0.45979309082031
Output for 5.3.29
0.1417510509491 0.57953190803528
Output for 5.3.28
0.13201713562012 0.5777850151062
Output for 5.3.27
0.11620903015137 0.51628112792969
Output for 5.3.26
0.14045906066895 0.57381200790405
Output for 5.3.25
0.12244510650635 0.56634116172791
Output for 5.3.24
0.16141200065613 0.56510400772095
Output for 5.3.23
0.1464478969574 0.58148598670959
Output for 5.3.22
0.16043305397034 0.67370390892029
Output for 5.3.21
0.15600204467773 0.5734498500824
Output for 5.3.20
0.1462230682373 0.57271695137024
Output for 5.3.19
0.15774583816528 0.59782099723816
Output for 5.3.18
0.14746403694153 0.60544204711914
Output for 5.3.17
0.15779995918274 0.56714010238647
Output for 5.3.16
0.14233207702637 0.58877301216125
Output for 5.3.15
0.16324877738953 0.60925889015198
Output for 5.3.14
0.13886785507202 0.5631628036499
Output for 5.3.13
0.11972403526306 0.50963091850281
Output for 5.3.12
0.16598010063171 0.57648706436157
Output for 5.3.11
0.1197772026062 0.4680061340332
Output for 5.3.10
0.13398504257202 0.45356392860413
Output for 5.3.9
0.14047694206238 0.56160402297974
Output for 5.3.8
0.15262603759766 0.55073404312134
Output for 5.3.7
0.13921809196472 0.54618096351624
Output for 5.3.6
0.14310002326965 0.55685091018677
Output for 5.3.5
0.16305208206177 0.55132293701172
Output for 5.3.4
0.13143301010132 0.57737183570862
Output for 5.3.3
0.12898182868958 0.48394894599915
Output for 5.3.2
0.12998819351196 0.51906085014343
Output for 5.3.1
0.14631390571594 0.55974507331848
Output for 5.3.0
0.12917685508728 0.52035093307495
Output for 5.2.17
0.16501498222351 0.56947994232178
Output for 5.2.16
0.17084002494812 0.53398299217224
Output for 5.2.15
0.14862298965454 0.55481290817261
Output for 5.2.14
0.1541121006012 0.51870393753052
Output for 5.2.13
0.14300298690796 0.50146102905273
Output for 5.2.12
0.13471579551697 0.52808499336243
Output for 5.2.11
0.17471599578857 0.60336995124817
Output for 5.2.10
0.16839718818665 0.53493499755859
Output for 5.2.9
0.12261605262756 0.53067588806152
Output for 5.2.8
0.16316914558411 0.53203701972961
Output for 5.2.7
0.12416481971741 0.52072501182556
Output for 5.2.6
0.14352512359619 0.52914500236511
Output for 5.2.5
0.15168809890747 0.5461311340332
Output for 5.2.4
0.15485501289368 0.56218409538269
Output for 5.2.3
0.12402391433716 0.51331615447998
Output for 5.2.2
0.14871692657471 0.51620411872864
Output for 5.2.1
0.13006496429443 0.52089905738831
Output for 5.2.0
0.11578011512756 0.46398186683655
Output for 5.1.6
0.12752819061279 0.44252109527588
Output for 5.1.5
0.10357999801636 0.45960187911987
Output for 5.1.4
0.14304399490356 0.57766699790955
Output for 5.1.3
0.1262218952179 0.48172807693481
Output for 5.1.2
0.13555097579956 0.41665005683899
Output for 5.1.1
0.11911106109619 0.47642803192139
Output for 5.1.0
0.096969842910767 0.40053510665894
Output for 5.0.5
0.28887295722961 0.72883796691895
Output for 5.0.4
0.29835796356201 0.69521403312683
Output for 5.0.3
0.25488710403442 0.66673398017883
Output for 5.0.2
0.27350401878357 0.64417600631714
Output for 5.0.1
0.24839091300964 0.66372799873352
Output for 5.0.0
0.27464008331299 0.65536594390869
Output for 4.4.9
0.227489 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.4.8
0.230797 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.4.7
0.243452 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.4.6
0.259817 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.4.5
0.258424 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.4.4
0.174324 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.4.3
0.206875 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.4.2
0.232765 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.4.1
0.209354 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.4.0
0.248213 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.11
0.271658 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.10
0.220496 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.9
0.260923 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.8
0.245664 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.7
0.270238 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.6
0.21035 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.5
0.217975 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.4
0.233932 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.3
0.266814 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.2
0.207281 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Process exited with code 255.
Output for 4.3.1
0.229721 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Output for 4.3.0
0.205578 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19