3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo {} $foo = new Foo; $rounds = 100000; $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++) { (new ReflectionClass($foo))->getName(); } echo (microtime(true) - $start);
Output for 7.1.0
0.006939172744751 0.035305976867676
Output for 7.0.14
0.0086760520935059 0.035283088684082
Output for 7.0.9
0.0040349960327148 0.028723001480103
Output for 7.0.8
0.0051519870758057 0.034854173660278
Output for 7.0.7
0.003770112991333 0.029119968414307
Output for 7.0.6
0.0051190853118896 0.028361082077026
Output for 7.0.5
0.0039589405059814 0.027160882949829
Output for 7.0.4
0.0057940483093262 0.031213998794556
Output for 7.0.3
0.0062780380249023 0.037199020385742
Output for 7.0.2
0.0058400630950928 0.030241012573242
Output for 7.0.1
0.0064868927001953 0.03989315032959
Output for 7.0.0
0.0051500797271729 0.031747817993164
Output for 5.6.28
0.020166873931885 0.065263986587524
Output for 5.6.23
0.012894868850708 0.064624071121216
Output for 5.6.22
0.015750885009766 0.073776006698608
Output for 5.6.21
0.016535043716431 0.070529937744141
Output for 5.6.20
0.011803865432739 0.059029102325439
Output for 5.6.19
0.015437126159668 0.060976982116699
Output for 5.6.18
0.010068893432617 0.054808855056763
Output for 5.6.17
0.013520956039429 0.060209989547729
Output for 5.6.16
0.017205953598022 0.085429191589355
Output for 5.6.15
0.016216993331909 0.07531213760376
Output for 5.6.14
0.015989065170288 0.073908090591431
Output for 5.6.13
0.010740041732788 0.055572986602783
Output for 5.6.12
0.013887882232666 0.060696125030518
Output for 5.6.11
0.01280403137207 0.062670230865479
Output for 5.6.10
0.010232210159302 0.054498910903931
Output for 5.6.9
0.012606859207153 0.061709880828857
Output for 5.6.8
0.015259981155396 0.063961982727051
Output for 5.6.7
0.014470100402832 0.05952000617981
Output for 5.6.6
0.015640020370483 0.07695198059082
Output for 5.6.5
0.016119956970215 0.078652858734131
Output for 5.6.4
0.01410698890686 0.064404964447021
Output for 5.6.3
0.016206979751587 0.077461004257202
Output for 5.6.2
0.012219190597534 0.05833888053894
Output for 5.6.1
0.0098159313201904 0.054244995117188
Output for 5.6.0
0.013943910598755 0.068204879760742
Output for 5.5.37
0.01358699798584 0.070936918258667
Output for 5.5.36
0.013403177261353 0.069323062896729
Output for 5.5.35
0.013279914855957 0.064212083816528
Output for 5.5.34
0.012907981872559 0.056114196777344
Output for 5.5.33
0.013707876205444 0.061131954193115
Output for 5.5.32
0.014212846755981 0.065716028213501
Output for 5.5.31
0.013880014419556 0.075889110565186
Output for 5.5.30
0.014049053192139 0.061904191970825
Output for 5.5.29
0.016378879547119 0.065315008163452
Output for 5.5.28
0.012026071548462 0.064105987548828
Output for 5.5.27
0.015450000762939 0.070427894592285
Output for 5.5.26
0.016302824020386 0.075188875198364
Output for 5.5.25
0.013673067092896 0.067199945449829
Output for 5.5.24
0.016705989837646 0.078378200531006
Output for 5.5.23
0.012756109237671 0.06150484085083
Output for 5.5.22
0.010319948196411 0.055817127227783
Output for 5.5.21
0.014619827270508 0.061663866043091
Output for 5.5.20
0.016188144683838 0.066683053970337
Output for 5.5.19
0.016016960144043 0.063541889190674
Output for 5.5.18
0.01311206817627 0.062858104705811
Output for 5.5.16
0.011836051940918 0.059079885482788
Output for 5.5.15
0.013144016265869 0.064594984054565
Output for 5.5.14
0.016443014144897 0.063975095748901
Output for 5.5.13
0.015594959259033 0.074496030807495
Output for 5.5.12
0.015420913696289 0.071871042251587
Output for 5.5.11
0.015161991119385 0.075163125991821
Output for 5.5.10
0.013685941696167 0.06622314453125
Output for 5.5.9
0.010093927383423 0.057845115661621
Output for 5.5.8
0.017384052276611 0.083504915237427
Output for 5.5.7
0.015444993972778 0.073870182037354
Output for 5.5.6
0.017451047897339 0.079802989959717
Output for 5.5.5
0.017464876174927 0.077632904052734
Output for 5.5.4
0.01305103302002 0.066834211349487
Output for 5.5.3
0.010738849639893 0.055981874465942
Output for 5.5.2
0.014596939086914 0.0626220703125
Output for 5.5.1
0.014889001846313 0.066166162490845
Output for 5.5.0
0.01396107673645 0.067713975906372
Output for 5.4.45
0.0097780227661133 0.054003000259399
Output for 5.4.44
0.015233993530273 0.067968130111694
Output for 5.4.43
0.016061067581177 0.075576066970825
Output for 5.4.42
0.012763023376465 0.06706690788269
Output for 5.4.41
0.017009973526001 0.091178894042969
Output for 5.4.40
0.010589122772217 0.055361986160278
Output for 5.4.39
0.014108896255493 0.057124137878418
Output for 5.4.38
0.016150951385498 0.076694011688232
Output for 5.4.37
0.015793085098267 0.066709995269775
Output for 5.4.36
0.017216205596924 0.077244997024536
Output for 5.4.35
0.016508817672729 0.077669143676758
Output for 5.4.34
0.014698028564453 0.064345121383667
Output for 5.4.32
0.011626005172729 0.058265924453735
Output for 5.4.31
0.010224103927612 0.054392099380493
Output for 5.4.30
0.015856027603149 0.066417932510376
Output for 5.4.29
0.011965990066528 0.05952000617981
Output for 5.4.28
0.015830993652344 0.073477029800415
Output for 5.4.27
0.01019811630249 0.053889989852905
Output for 5.4.26
0.014966011047363 0.069969892501831
Output for 5.4.25
0.014386892318726 0.060615062713623
Output for 5.4.24
0.012566089630127 0.06465220451355
Output for 5.4.23
0.015836000442505 0.07630181312561
Output for 5.4.22
0.010315895080566 0.054993152618408
Output for 5.4.21
0.015889883041382 0.073395013809204
Output for 5.4.20
0.012863874435425 0.066402912139893
Output for 5.4.19
0.014233112335205 0.064671039581299
Output for 5.4.18
0.013815879821777 0.059303998947144
Output for 5.4.17
0.01520299911499 0.071789026260376
Output for 5.4.16
0.014255046844482 0.06400990486145
Output for 5.4.15
0.0098409652709961 0.053663015365601
Output for 5.4.14
0.011062145233154 0.059937953948975
Output for 5.4.13
0.010725021362305 0.058718919754028
Output for 5.4.12
0.014935970306396 0.065423011779785
Output for 5.4.11
0.013657093048096 0.058800935745239
Output for 5.4.10
0.014557123184204 0.057861089706421
Output for 5.4.9
0.01505708694458 0.061975002288818
Output for 5.4.8
0.010645866394043 0.056387186050415
Output for 5.4.7
0.017257928848267 0.075800895690918
Output for 5.4.6
0.011812925338745 0.066465139389038
Output for 5.4.5
0.012470006942749 0.061969041824341
Output for 5.4.4
0.01416015625 0.067713022232056
Output for 5.4.3
0.01412296295166 0.060306072235107
Output for 5.4.2
0.011999845504761 0.060851097106934
Output for 5.4.1
0.016535997390747 0.076370000839233
Output for 5.4.0
0.017987966537476 0.067606925964355
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/EUp9S on line 19
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/EUp9S on line 19
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/EUp9S on line 19
Process exited with code 255.