3v4l.org

run code in 300+ PHP versions simultaneously
<?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.4.0
0.029036998748779 0.2520809173584
Output for 7.3.12
0.032218933105469 0.39579606056213
Output for 7.3.11
0.030216217041016 0.38821887969971
Output for 7.3.10
0.02324104309082 0.22934603691101
Output for 7.3.9
0.026299953460693 0.26688194274902
Output for 7.3.8
0.023964166641235 0.27765893936157
Output for 7.3.7
0.033488035202026 0.31180500984192
Output for 7.3.6
0.022478103637695 0.27876400947571
Output for 7.3.5
0.022518873214722 0.33056902885437
Output for 7.3.4
0.026639938354492 0.23782420158386
Output for 7.3.3
0.032715082168579 0.25269103050232
Output for 7.3.2
0.034212112426758 0.28511309623718
Output for 7.3.1
0.022312879562378 0.22930908203125
Output for 7.3.0
0.026141166687012 0.22569799423218
Output for 7.2.25
0.032125949859619 0.4839391708374
Output for 7.2.24
0.035246849060059 0.50938701629639
Output for 7.2.23
0.024039030075073 0.45935297012329
Output for 7.2.22
0.030735015869141 0.44552612304688
Output for 7.2.21
0.02563214302063 0.44135212898254
Output for 7.2.20
0.031337976455688 0.3658230304718
Output for 7.2.19
0.031057119369507 0.34152412414551
Output for 7.2.18
0.027369976043701 0.37389993667603
Output for 7.2.17
0.034759044647217 0.46745610237122
Output for 7.2.16
0.019421100616455 0.40241408348083
Output for 7.2.15
0.022104024887085 0.36400103569031
Output for 7.2.14
0.022289037704468 0.50353193283081
Output for 7.2.13
0.019415855407715 0.40839004516602
Output for 7.2.12
0.022146940231323 0.37252497673035
Output for 7.2.11
0.020684003829956 0.35057997703552
Output for 7.2.10
0.020153999328613 0.33678197860718
Output for 7.2.9
0.018419027328491 0.30451607704163
Output for 7.2.8
0.02031683921814 0.31158089637756
Output for 7.2.7
0.024699926376343 0.31920790672302
Output for 7.2.6
0.023927927017212 0.38451194763184
Output for 7.2.5
0.020123958587646 0.33565187454224
Output for 7.2.4
0.022676944732666 0.31895208358765
Output for 7.2.3
0.023408889770508 0.33388304710388
Output for 7.2.2
0.020280838012695 0.34875798225403
Output for 7.2.1
0.01853084564209 0.33436107635498
Output for 7.2.0
0.028575897216797 0.33663511276245
Output for 7.1.33
0.10811805725098 0.43347978591919
Output for 7.1.32
0.099446058273315 0.45538282394409
Output for 7.1.31
0.10043096542358 0.4194769859314
Output for 7.1.30
0.12237405776978 0.51824688911438
Output for 7.1.29
0.14864492416382 0.50546002388
Output for 7.1.28
0.1329619884491 0.48994398117065
Output for 7.1.27
0.13471388816833 0.46607398986816
Output for 7.1.26
0.15106797218323 0.42155289649963
Output for 7.1.25
0.073014974594116 0.3506920337677
Output for 7.1.24
0.07977294921875 0.48714089393616
Output for 7.1.23
0.062263011932373 0.35163402557373
Output for 7.1.22
0.081487894058228 0.43320488929749
Output for 7.1.21
0.058397054672241 0.36449503898621
Output for 7.1.20
0.058698892593384 0.39511203765869
Output for 7.1.19
0.064306974411011 0.35422015190125
Output for 7.1.18
0.058180093765259 0.43260407447815
Output for 7.1.17
0.061061143875122 0.48927021026611
Output for 7.1.16
0.071568965911865 0.36701393127441
Output for 7.1.15
0.064923763275146 0.41076803207397
Output for 7.1.14
0.063438177108765 0.3789119720459
Output for 7.1.13
0.063261985778809 0.35894298553467
Output for 7.1.12
0.064183950424194 0.43515610694885
Output for 7.1.11
0.065083026885986 0.35557794570923
Output for 7.1.10
0.062276124954224 0.41669082641602
Output for 7.1.9
0.062073945999146 0.43096303939819
Output for 7.1.8
0.074042081832886 0.36086702346802
Output for 7.1.7
0.060082912445068 0.38638496398926
Output for 7.1.6
0.070598125457764 0.39544105529785
Output for 7.1.5
0.065950870513916 0.36362600326538
Output for 7.1.4
0.064260005950928 0.37363290786743
Output for 7.1.3
0.058856964111328 0.41144990921021
Output for 7.1.2
0.058413028717041 0.35595512390137
Output for 7.1.1
0.062353134155273 0.48224997520447
Output for 7.1.0
0.067494869232178 0.38944792747498
Output for 7.0.33
0.069051027297974 0.41009902954102
Output for 7.0.32
0.063471078872681 0.37652087211609
Output for 7.0.31
0.058228969573975 0.36436486244202
Output for 7.0.30
0.061269044876099 0.41556811332703
Output for 7.0.29
0.066345930099487 0.45787405967712
Output for 7.0.28
0.061207056045532 0.3385169506073
Output for 7.0.27
0.069983959197998 0.37266302108765
Output for 7.0.26
0.065554857254028 0.35747003555298
Output for 7.0.25
0.062598943710327 0.36947393417358
Output for 7.0.24
0.057475090026855 0.38581705093384
Output for 7.0.23
0.075489044189453 0.38152599334717
Output for 7.0.22
0.065464973449707 0.33150601387024
Output for 7.0.21
0.061614036560059 0.36776685714722
Output for 7.0.20
0.079585075378418 0.44840502738953
Output for 7.0.19
0.083194971084595 0.33358097076416
Output for 7.0.18
0.068253040313721 0.37761402130127
Output for 7.0.17
0.064801931381226 0.40480899810791
Output for 7.0.16
0.071712017059326 0.41942095756531
Output for 7.0.15
0.062389850616455 0.36746191978455
Output for 7.0.14
0.066439867019653 0.32074594497681
Output for 7.0.13
0.078041076660156 0.40157413482666
Output for 7.0.12
0.075901031494141 0.33965611457825
Output for 7.0.11
0.057954072952271 0.37002205848694
Output for 7.0.10
0.061170101165771 0.39786815643311
Output for 7.0.9
0.062286853790283 0.38493609428406
Output for 7.0.8
0.16501212120056 0.61121702194214
Output for 7.0.7
0.093044996261597 0.35916686058044
Output for 7.0.6
0.077672004699707 0.37970209121704
Output for 7.0.5
0.074481010437012 0.3444299697876
Output for 7.0.4
0.063177108764648 0.34361600875854
Output for 7.0.3
0.080835103988647 0.36986207962036
Output for 7.0.2
0.078055143356323 0.52820992469788
Output for 7.0.1
0.084374904632568 0.37253618240356
Output for 7.0.0
0.079944133758545 0.41672611236572
Output for 5.6.40
0.17216110229492 0.78139305114746
Output for 5.6.39
0.16127514839172 0.8029420375824
Output for 5.6.38
0.16057896614075 0.79182982444763
Output for 5.6.37
0.17379307746887 0.81051397323608
Output for 5.6.36
0.20584297180176 0.7243800163269
Output for 5.6.35
0.19318199157715 0.7543740272522
Output for 5.6.34
0.16486096382141 0.73427796363831
Output for 5.6.33
0.21625304222107 0.73925805091858
Output for 5.6.32
0.22246408462524 0.71705603599548
Output for 5.6.31
0.17749810218811 0.73925709724426
Output for 5.6.30
0.21789121627808 0.7857358455658
Output for 5.6.29
0.25914907455444 0.86068391799927
Output for 5.6.28
0.21682405471802 0.75305008888245
Output for 5.6.27
0.15491104125977 0.8637900352478
Output for 5.6.26
0.16861391067505 0.73531198501587
Output for 5.6.25
0.21667885780334 1.1250910758972
Output for 5.6.24
0.17394495010376 0.95575499534607
Output for 5.6.23
0.19408798217773 0.95109891891479
Output for 5.6.22
0.16868305206299 0.78364896774292
Output for 5.6.21
0.17460799217224 0.71794986724854
Output for 5.6.20
0.16513395309448 0.82869291305542
Output for 5.6.19
0.19789505004883 0.92137503623962
Output for 5.6.18
0.21414518356323 0.80452585220337
Output for 5.6.17
0.19446992874146 1.0703308582306
Output for 5.6.16
0.19991707801819 0.85258293151855
Output for 5.6.15
0.18764305114746 0.75038290023804
Output for 5.6.14
0.17308688163757 0.86819195747375
Output for 5.6.13
0.22194480895996 0.87632703781128
Output for 5.6.12
0.20139098167419 0.74414610862732
Output for 5.6.11
0.18005895614624 0.84157490730286
Output for 5.6.10
0.17108607292175 0.75714993476868
Output for 5.6.9
0.18915009498596 0.78571891784668
Output for 5.6.8
0.16032004356384 0.85787796974182
Output for 5.6.7
0.17637801170349 0.87123799324036
Output for 5.6.6
0.22794508934021 0.80748414993286
Output for 5.6.5
0.17672395706177 0.98955106735229
Output for 5.6.4
0.22073006629944 0.87726283073425
Output for 5.6.3
0.16345500946045 0.8662109375
Output for 5.6.2
0.2089478969574 0.85047316551208
Output for 5.6.1
0.1632981300354 0.7610878944397
Output for 5.6.0
0.26433897018433 0.84491491317749
Output for 5.5.38
0.18401789665222 1.0196490287781
Output for 5.5.37
0.18836998939514 0.75135612487793
Output for 5.5.36
0.18712520599365 0.70568203926086
Output for 5.5.35
0.16005682945251 0.79339694976807
Output for 5.5.34
0.15704298019409 0.74912786483765
Output for 5.5.33
0.1592960357666 0.82421183586121
Output for 5.5.32
0.17676687240601 0.72923612594604
Output for 5.5.31
0.20072984695435 1.0185248851776
Output for 5.5.30
0.17537593841553 0.69529914855957
Output for 5.5.29
0.17227101325989 0.90738010406494
Output for 5.5.28
0.17569398880005 0.76389598846436
Output for 5.5.27
0.17547488212585 1.0360209941864
Output for 5.5.26
0.16119599342346 0.86808490753174
Output for 5.5.25
0.16310787200928 0.93307209014893
Output for 5.5.24
0.18227005004883 0.729572057724
Output for 5.5.23
0.16501998901367 0.82753705978394
Output for 5.5.22
0.15824913978577 0.78053903579712
Output for 5.5.21
0.16421484947205 0.7113471031189
Output for 5.5.20
0.19010782241821 0.71816110610962
Output for 5.5.19
0.25955009460449 1.2488238811493
Output for 5.5.18
0.15765619277954 0.78511595726013
Output for 5.5.17
0.14960885047913 0.75374603271484
Output for 5.5.16
0.1641960144043 0.91391682624817
Output for 5.5.15
0.16954398155212 0.85464692115784
Output for 5.5.14
0.23252105712891 0.83931303024292
Output for 5.5.13
0.16279697418213 0.83124899864197
Output for 5.5.12
0.16484117507935 0.9010272026062
Output for 5.5.11
0.15421795845032 0.76612091064453
Output for 5.5.10
0.15409302711487 0.86392498016357
Output for 5.5.9
0.15709185600281 1.0073330402374
Output for 5.5.8
0.18274903297424 0.80966019630432
Output for 5.5.7
0.213054895401 0.71766781806946
Output for 5.5.6
0.21668982505798 0.7892918586731
Output for 5.5.5
0.22406387329102 0.89497303962708
Output for 5.5.4
0.1625988483429 0.85418796539307
Output for 5.5.3
0.16943192481995 0.76499509811401
Output for 5.5.2
0.17551803588867 0.88580584526062
Output for 5.5.1
0.16339778900146 0.68017506599426
Output for 5.5.0
0.15822100639343 0.72626113891602
Output for 5.4.45
0.15707492828369 0.97402906417847
Output for 5.4.44
0.20494604110718 0.85878992080688
Output for 5.4.43
0.18874502182007 0.80092906951904
Output for 5.4.42
0.16685080528259 0.89838695526123
Output for 5.4.41
0.21280598640442 0.72142601013184
Output for 5.4.40
0.1702561378479 0.69769382476807
Output for 5.4.39
0.1864960193634 0.83072519302368
Output for 5.4.38
0.17331099510193 1.0678589344025
Output for 5.4.37
0.21074199676514 0.82597398757935
Output for 5.4.36
0.18396687507629 0.7358729839325
Output for 5.4.35
0.17010998725891 0.80620002746582
Output for 5.4.34
0.16519403457642 0.79052710533142
Output for 5.4.33
0.15624189376831 0.72366690635681
Output for 5.4.32
0.18274593353271 0.86565113067627
Output for 5.4.31
0.19931483268738 0.93039512634277
Output for 5.4.30
0.17518401145935 0.91506600379944
Output for 5.4.29
0.22877907752991 0.80715084075928
Output for 5.4.28
0.1620991230011 0.8349781036377
Output for 5.4.27
0.16310882568359 0.85612392425537
Output for 5.4.26
0.19019913673401 0.81560897827148
Output for 5.4.25
0.16881084442139 0.80468511581421
Output for 5.4.24
0.18195295333862 0.83370399475098
Output for 5.4.23
0.22464299201965 0.83354496955872
Output for 5.4.22
0.20357489585876 0.79590702056885
Output for 5.4.21
0.196448802948 0.85168886184692
Output for 5.4.20
0.16961407661438 0.81150221824646
Output for 5.4.19
0.18335509300232 0.77705597877502
Output for 5.4.18
0.18296885490417 0.73171591758728
Output for 5.4.17
0.17022800445557 0.7165949344635
Output for 5.4.16
0.19615602493286 0.83458209037781
Output for 5.4.15
0.16195011138916 0.73455119132996
Output for 5.4.14
0.17214298248291 0.71381402015686
Output for 5.4.13
0.16427087783813 0.77374696731567
Output for 5.4.12
0.16674995422363 0.72970199584961
Output for 5.4.11
0.22381901741028 1.4099318981171
Output for 5.4.10
0.26394510269165 0.9090781211853
Output for 5.4.9
0.18737602233887 0.84086608886719
Output for 5.4.8
0.16164398193359 0.71124887466431
Output for 5.4.7
0.16289591789246 0.71966886520386
Output for 5.4.6
0.25287294387817 0.96586799621582
Output for 5.4.5
0.16215300559998 0.73617100715637
Output for 5.4.4
0.15984296798706 0.70868420600891
Output for 5.4.3
0.19845199584961 0.76093792915344
Output for 5.4.2
0.20743989944458 0.71850895881653
Output for 5.4.1
0.17243194580078 0.80353713035583
Output for 5.4.0
0.16981387138367 0.73310279846191
Output for 5.3.29
0.18534421920776 0.9643828868866
Output for 5.3.28
0.20808005332947 1.1818180084229
Output for 5.3.27
0.18768906593323 0.84675002098083
Output for 5.3.26
0.18915414810181 0.87011384963989
Output for 5.3.25
0.17372918128967 0.85636591911316
Output for 5.3.24
0.20407199859619 0.97072792053223
Output for 5.3.23
0.2107150554657 0.8278980255127
Output for 5.3.22
0.19575715065002 0.94975709915161
Output for 5.3.21
0.223069190979 1.2976770401001
Output for 5.3.20
0.38233304023743 1.2006278038025
Output for 5.3.19
0.30495500564575 1.3958950042725
Output for 5.3.18
0.19812703132629 1.0641648769379
Output for 5.3.17
0.21842122077942 1.1318681240082
Output for 5.3.16
0.31152820587158 1.2363450527191
Output for 5.3.15
0.19089412689209 0.88055992126465
Output for 5.3.14
0.23387122154236 1.0968899726868
Output for 5.3.13
0.30199217796326 0.96733593940735
Output for 5.3.12
0.28861713409424 0.89592504501343
Output for 5.3.11
0.18758702278137 0.82399415969849
Output for 5.3.10
0.2088840007782 1.0142109394073
Output for 5.3.9
0.20028018951416 0.87044906616211
Output for 5.3.8
0.24660801887512 1.1926081180573
Output for 5.3.7
0.21314811706543 1.0283660888672
Output for 5.3.6
0.19865012168884 0.89754319190979
Output for 5.3.5
0.22490000724792 1.0441930294037
Output for 5.3.4
0.21038508415222 0.90851402282715
Output for 5.3.3
0.21057319641113 0.80562090873718
Output for 5.3.2
0.19948720932007 0.90447115898132
Output for 5.3.1
0.21188402175903 0.78516387939453
Output for 5.3.0
0.20560312271118 0.72628712654114
Output for 5.2.17
0.19101619720459 0.93660807609558
Output for 5.2.16
0.20071220397949 0.86966300010681
Output for 5.2.15
0.19020199775696 0.78676795959473
Output for 5.2.14
0.20728921890259 0.86467504501343
Output for 5.2.13
0.24844813346863 0.99627995491028
Output for 5.2.12
0.23774313926697 0.79237794876099
Output for 5.2.11
0.21327900886536 0.75502419471741
Output for 5.2.10
0.20188212394714 0.82778406143188
Output for 5.2.9
0.20641207695007 0.869215965271
Output for 5.2.8
0.18910312652588 0.91824102401733
Output for 5.2.7
0.23130416870117 0.76863694190979
Output for 5.2.6
0.18509721755981 0.79593896865845
Output for 5.2.5
0.18835020065308 0.82799506187439
Output for 5.2.4
0.1830461025238 0.87209010124207
Output for 5.2.3
0.21342611312866 0.80340313911438
Output for 5.2.2
0.18783211708069 1.095449924469
Output for 5.2.1
0.19188189506531 0.76251292228699
Output for 5.2.0
0.22452187538147 0.79833221435547
Output for 5.1.6
0.20146799087524 0.88745284080505
Output for 5.1.5
0.2172999382019 0.73391580581665
Output for 5.1.4
0.23439407348633 0.84870409965515
Output for 5.1.3
0.19706797599792 0.96914196014404
Output for 5.1.2
0.20155501365662 0.7824501991272
Output for 5.1.1
0.27905416488647 0.88516402244568
Output for 5.1.0
0.21315503120422 0.82074809074402
Output for 5.0.5
0.44573187828064 1.2125780582428
Output for 5.0.4
0.48912119865417 1.1750831604004
Output for 5.0.3
0.75081706047058 1.4095389842987
Output for 5.0.2
0.46478009223938 1.133278131485
Output for 5.0.1
0.48803019523621 1.1150419712067
Output for 5.0.0
0.46592807769775 1.2783269882202
Output for 4.4.9
0.445278 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.439381 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.731767 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.507941 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.490286 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.435332 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.442474 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.420943 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.533883 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.439624 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.507993 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.447277 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.410678 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.447493 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.553918 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.720219 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.436634 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.458118 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.53728 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.402081 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.613062 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19
Output for 4.3.0
0.387529 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GtsON on line 19

preferences:
234.86 ms | 401 KiB | 322 Q