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++) { $r = new ReflectionClass($foo); $r->getName(); } echo (microtime(true) - $start);
Output for 7.4.0
0.027546167373657 0.31002402305603
Output for 7.3.12
0.032335996627808 0.38058710098267
Output for 7.3.11
0.02489185333252 0.26028490066528
Output for 7.3.10
0.02626895904541 0.34655094146729
Output for 7.3.9
0.026058197021484 0.25860905647278
Output for 7.3.8
0.030292987823486 0.26314997673035
Output for 7.3.7
0.025614023208618 0.22994995117188
Output for 7.3.6
0.032304048538208 0.25292587280273
Output for 7.3.5
0.024482011795044 0.29820203781128
Output for 7.3.4
0.030352830886841 0.31945109367371
Output for 7.3.3
0.032779932022095 0.3424072265625
Output for 7.3.2
0.023839950561523 0.23049688339233
Output for 7.3.1
0.025542974472046 0.28912091255188
Output for 7.3.0
0.033757925033569 0.26288414001465
Output for 7.2.25
0.034454107284546 0.44071102142334
Output for 7.2.24
0.024513959884644 0.37657284736633
Output for 7.2.23
0.023425102233887 0.33780694007874
Output for 7.2.22
0.035040855407715 0.44554591178894
Output for 7.2.21
0.032145023345947 0.42782092094421
Output for 7.2.20
0.034384965896606 0.37083387374878
Output for 7.2.19
0.026729106903076 0.44865202903748
Output for 7.2.18
0.024611949920654 0.35553312301636
Output for 7.2.17
0.033203840255737 0.38113498687744
Output for 7.2.0
0.015186071395874 0.21901893615723
Output for 7.1.33
0.14575910568237 0.4643759727478
Output for 7.1.32
0.11066317558289 0.45087909698486
Output for 7.1.31
0.10117411613464 0.42364597320557
Output for 7.1.30
0.12665700912476 0.4128680229187
Output for 7.1.29
0.099637985229492 0.55761408805847
Output for 7.1.28
0.11818408966064 0.53337287902832
Output for 7.1.27
0.15312194824219 0.48864889144897
Output for 7.1.26
0.10110902786255 0.40722799301147
Output for 7.1.7
0.063070058822632 0.25283002853394
Output for 7.1.6
0.077083110809326 0.27271509170532
Output for 7.1.5
0.067312002182007 0.25502586364746
Output for 7.1.0
0.062594175338745 -0.15827703475952
Output for 7.0.20
0.048243045806885 0.26215982437134
Output for 7.0.14
0.072507858276367 0.24477696418762
Output for 7.0.10
0.051002979278564 0.28831911087036
Output for 7.0.9
0.039993047714233 0.2886791229248
Output for 7.0.8
0.039345979690552 0.2832179069519
Output for 7.0.7
0.0312340259552 0.23672008514404
Output for 7.0.6
0.059601068496704 0.31666612625122
Output for 7.0.5
0.05296802520752 0.34749698638916
Output for 7.0.4
0.049520969390869 0.34107804298401
Output for 7.0.3
0.042880058288574 0.28658604621887
Output for 7.0.2
0.049086809158325 0.28098011016846
Output for 7.0.1
0.052793979644775 0.28850102424622
Output for 7.0.0
0.05636191368103 0.29499197006226
Output for 5.6.28
0.16149687767029 0.30122017860413
Output for 5.6.25
0.11518311500549 0.55922889709473
Output for 5.6.24
0.10158610343933 0.56800699234009
Output for 5.6.23
0.099262952804565 0.52456212043762
Output for 5.6.22
0.081056118011475 0.47358083724976
Output for 5.6.21
0.13752913475037 0.57166409492493
Output for 5.6.20
0.10179400444031 0.56699681282043
Output for 5.6.19
0.11846494674683 0.56304597854614
Output for 5.6.18
0.10860919952393 0.56290102005005
Output for 5.6.17
0.12951397895813 0.54363799095154
Output for 5.6.16
0.10507798194885 0.58760499954224
Output for 5.6.15
0.11284494400024 0.63851499557495
Output for 5.6.14
0.11202383041382 0.56802105903625
Output for 5.6.13
0.12278008460999 0.57979702949524
Output for 5.6.12
0.1361620426178 0.67256593704224
Output for 5.6.11
0.11237597465515 0.57315993309021
Output for 5.6.10
0.10921597480774 0.56842017173767
Output for 5.6.9
0.11391496658325 0.56765103340149
Output for 5.6.8
0.11456084251404 0.56448197364807
Output for 5.6.7
0.11545705795288 0.55753207206726
Output for 5.6.6
0.10783195495605 0.55926012992859
Output for 5.6.5
0.098000049591064 0.57272601127625
Output for 5.6.4
0.10536909103394 0.59172296524048
Output for 5.6.3
0.13333916664124 0.57344198226929
Output for 5.6.2
0.11215090751648 0.5587329864502
Output for 5.6.1
0.12343502044678 0.5612370967865
Output for 5.6.0
0.13188481330872 0.56938886642456
Output for 5.5.38
0.11888098716736 0.58067297935486
Output for 5.5.37
0.088546991348267 0.54044699668884
Output for 5.5.36
0.14840292930603 0.66563701629639
Output for 5.5.35
0.10866403579712 0.60485005378723
Output for 5.5.34
0.11733412742615 0.57909083366394
Output for 5.5.33
0.11796593666077 0.58955597877502
Output for 5.5.32
0.13091611862183 0.61143207550049
Output for 5.5.31
0.13618612289429 0.58101511001587
Output for 5.5.30
0.11163997650146 0.58323884010315
Output for 5.5.29
0.13021612167358 0.58130478858948
Output for 5.5.28
0.10522294044495 0.57919692993164
Output for 5.5.27
0.1365659236908 0.57470703125
Output for 5.5.26
0.13563704490662 0.57418298721313
Output for 5.5.25
0.10505795478821 0.57393288612366
Output for 5.5.24
0.10898184776306 0.57505893707275
Output for 5.5.23
0.15842199325562 0.58695697784424
Output for 5.5.22
0.13853287696838 0.57803106307983
Output for 5.5.21
0.11709594726562 0.59011793136597
Output for 5.5.20
0.12144804000854 0.55592894554138
Output for 5.5.19
0.10838389396667 0.57372713088989
Output for 5.5.18
0.11593413352966 0.58262014389038
Output for 5.5.16
0.11515498161316 0.57860493659973
Output for 5.5.15
0.10880303382874 0.51124906539917
Output for 5.5.14
0.10138082504272 0.47622394561768
Output for 5.5.13
0.10226798057556 0.52573299407959
Output for 5.5.12
0.10574698448181 0.5634400844574
Output for 5.5.11
0.084523916244507 0.47967100143433
Output for 5.5.10
0.12073612213135 0.57629108428955
Output for 5.5.9
0.11530685424805 0.56955695152283
Output for 5.5.8
0.10589289665222 0.57463097572327
Output for 5.5.7
0.1403911113739 0.58601093292236
Output for 5.5.6
0.1483039855957 0.63142108917236
Output for 5.5.5
0.13807678222656 0.60606098175049
Output for 5.5.4
0.1157169342041 0.57449197769165
Output for 5.5.3
0.12905192375183 0.56840109825134
Output for 5.5.2
0.12783408164978 0.58056402206421
Output for 5.5.1
0.11311602592468 0.60932517051697
Output for 5.5.0
0.13834095001221 0.57208585739136
Output for 5.4.45
0.11245012283325 0.56797909736633
Output for 5.4.44
0.11037492752075 0.5559937953949
Output for 5.4.43
0.11854100227356 0.5647439956665
Output for 5.4.42
0.12761092185974 0.55990695953369
Output for 5.4.41
0.13218307495117 0.56772685050964
Output for 5.4.40
0.12604689598083 0.59267401695251
Output for 5.4.39
0.10961103439331 0.54155993461609
Output for 5.4.38
0.13111090660095 0.56211805343628
Output for 5.4.37
0.11544299125671 0.56408905982971
Output for 5.4.36
0.108726978302 0.5602548122406
Output for 5.4.35
0.13576698303223 0.56323313713074
Output for 5.4.34
0.10065197944641 0.54399394989014
Output for 5.4.32
0.10384106636047 0.5598931312561
Output for 5.4.31
0.11035394668579 0.56295299530029
Output for 5.4.30
0.10673093795776 0.56038403511047
Output for 5.4.29
0.10035419464111 0.55895590782166
Output for 5.4.28
0.10062503814697 0.48000383377075
Output for 5.4.27
0.082123041152954 0.45691299438477
Output for 5.4.26
0.09958291053772 0.48060417175293
Output for 5.4.25
0.11668801307678 0.56320810317993
Output for 5.4.24
0.14090085029602 0.56435322761536
Output for 5.4.23
0.11272096633911 0.62091207504272
Output for 5.4.22
0.1139030456543 0.61356806755066
Output for 5.4.21
0.10000395774841 0.55626893043518
Output for 5.4.20
0.10693788528442 0.56819701194763
Output for 5.4.19
0.12685084342957 0.55688309669495
Output for 5.4.18
0.11883997917175 0.56822896003723
Output for 5.4.17
0.12485694885254 0.55202484130859
Output for 5.4.16
0.13025283813477 0.55699706077576
Output for 5.4.15
0.1231689453125 0.67672896385193
Output for 5.4.14
0.12302398681641 0.5615348815918
Output for 5.4.13
0.1293249130249 0.597491979599
Output for 5.4.12
0.1191520690918 0.56669497489929
Output for 5.4.11
0.10218405723572 0.54747104644775
Output for 5.4.10
0.11818790435791 0.55576109886169
Output for 5.4.9
0.13698315620422 0.63924694061279
Output for 5.4.8
0.10464811325073 0.56878304481506
Output for 5.4.7
0.11368894577026 0.55755519866943
Output for 5.4.6
0.13202595710754 0.56273913383484
Output for 5.4.5
0.11101508140564 0.55848002433777
Output for 5.4.4
0.10670304298401 0.55997109413147
Output for 5.4.3
0.12497878074646 0.55978918075562
Output for 5.4.2
0.11223697662354 0.56843996047974
Output for 5.4.1
0.1269519329071 0.55703091621399
Output for 5.4.0
0.11222910881042 0.56364607810974
Output for 5.3.29
0.14553117752075 0.63881587982178
Output for 5.3.28
0.13166904449463 0.60897207260132
Output for 5.3.27
0.13443112373352 0.58191895484924
Output for 5.3.26
0.13894701004028 0.57082796096802
Output for 5.3.25
0.13903403282166 0.57542610168457
Output for 5.3.24
0.12855696678162 0.54587388038635
Output for 5.3.23
0.13415694236755 0.57848191261292
Output for 5.3.22
0.15137004852295 0.59245300292969
Output for 5.3.21
0.13135004043579 0.58512783050537
Output for 5.3.20
0.13643598556519 0.58488011360168
Output for 5.3.19
0.13289999961853 0.5806200504303
Output for 5.3.18
0.15199494361877 0.54798698425293
Output for 5.3.17
0.12913990020752 0.57115197181702
Output for 5.3.16
0.14434599876404 0.64410901069641
Output for 5.3.15
0.13523602485657 0.5875141620636
Output for 5.3.14
0.1339750289917 0.54832911491394
Output for 5.3.13
0.12127900123596 0.46321392059326
Output for 5.3.12
0.13783001899719 0.54937291145325
Output for 5.3.11
0.13182783126831 0.5579891204834
Output for 5.3.10
0.1229829788208 0.54352807998657
Output for 5.3.9
0.1391749382019 0.55128479003906
Output for 5.3.8
0.13489007949829 0.61901783943176
Output for 5.3.7
0.11833596229553 0.54222202301025
Output for 5.3.6
0.13416695594788 0.57529306411743
Output for 5.3.5
0.12136483192444 0.57509279251099
Output for 5.3.4
0.12481784820557 0.55062007904053
Output for 5.3.3
0.12194800376892 0.50539302825928
Output for 5.3.2
0.099532127380371 0.43924307823181
Output for 5.3.1
0.12659502029419 0.54282212257385
Output for 5.3.0
0.12634801864624 0.53885197639465
Output for 5.2.17
0.11905193328857 0.51645398139954
Output for 5.2.16
0.13251209259033 0.54754686355591
Output for 5.2.15
0.10128808021545 0.45053815841675
Output for 5.2.14
0.13631200790405 0.55384516716003
Output for 5.2.13
0.13243007659912 0.54520702362061
Output for 5.2.12
0.12841606140137 0.55685806274414
Output for 5.2.11
0.14810490608215 0.5221540927887
Output for 5.2.10
0.16409301757812 0.53509902954102
Output for 5.2.9
0.16422820091248 0.52991008758545
Output for 5.2.8
0.12603211402893 0.53951787948608
Output for 5.2.7
0.15816497802734 0.53170299530029
Output for 5.2.6
0.11963701248169 0.52670907974243
Output for 5.2.5
0.1595299243927 0.63190889358521
Output for 5.2.4
0.13416814804077 0.53497695922852
Output for 5.2.3
0.11977696418762 0.53101897239685
Output for 5.2.2
0.14513206481934 0.52297401428223
Output for 5.2.1
0.12787389755249 0.59019994735718
Output for 5.2.0
0.13396191596985 0.53360509872437
Output for 5.1.6
0.15123105049133 0.48956894874573
Output for 5.1.5
0.14191198348999 0.57083201408386
Output for 5.1.4
0.1688289642334 0.55043482780457
Output for 5.1.3
0.12799000740051 0.53857016563416
Output for 5.1.2
0.15369200706482 0.48826098442078
Output for 5.1.1
0.16202712059021 0.54298496246338
Output for 5.1.0
0.1447639465332 0.49438500404358
Output for 5.0.5
0.26759600639343 0.67981886863708
Output for 5.0.4
0.2793390750885 0.66639804840088
Output for 5.0.3
0.27940201759338 0.71203112602234
Output for 5.0.2
0.2445080280304 0.62862086296082
Output for 5.0.1
0.26212382316589 0.62027788162231
Output for 5.0.0
0.27038884162903 0.70892310142517
Output for 4.4.9
0.265037 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.4.8
0.229161 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.4.7
0.228918 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.4.6
0.244562 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.4.5
0.2238 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.4.4
0.236344 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.4.3
0.251725 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.4.2
0.266865 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.4.1
0.271532 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.4.0
0.176734 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.11
0.250337 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.10
0.303309 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.9
0.198541 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.8
0.227327 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.7
0.276657 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.6
0.258468 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.5
0.250803 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.4
0.238212 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.3
0.250673 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.2
0.236037 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Process exited with code 255.
Output for 4.3.1
0.251858 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19
Output for 4.3.0
0.266515 Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/GdWqV on line 19

preferences:
181.73 ms | 401 KiB | 247 Q