3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Kitchen { private $yummy = 'cake'; } $time_start = microtime(true); for ($i = 0; $i < 100000; $i += 1) { $sweetsThief = new ReflectionProperty('Kitchen', 'yummy'); $sweetsThief->setAccessible(true); } echo microtime(true) - $time_start;
Output for 7.1.0
0.055181980133057
Output for 7.0.14
0.056679964065552
Output for 7.0.12
0.054010152816772
Output for 7.0.6
0.048683881759644
Output for 7.0.5
0.033990859985352
Output for 7.0.4
0.04745888710022
Output for 7.0.3
0.040223121643066
Output for 7.0.2
0.043877124786377
Output for 7.0.1
0.041823148727417
Output for 7.0.0
0.034021854400635
Output for hhvm-3.12.0
0.10368680953979
Output for hhvm-3.10.0
0.12414288520813
Output for 5.6.28
0.092359066009521
Output for 5.6.21
0.074118137359619
Output for 5.6.20
0.071377992630005
Output for 5.6.19
0.059967994689941
Output for 5.6.18
0.075001001358032
Output for 5.6.17
0.072312831878662
Output for 5.6.16
0.066447973251343
Output for 5.6.15
0.075105905532837
Output for 5.6.14
0.056162118911743
Output for 5.6.13
0.060461044311523
Output for 5.6.12
0.08232593536377
Output for 5.6.11
0.057579040527344
Output for 5.6.10
0.059206008911133
Output for 5.6.9
0.072859048843384
Output for 5.6.8
0.057062149047852
Output for 5.5.35
0.047080993652344
Output for 5.5.34
0.081476926803589
Output for 5.5.33
0.059514045715332
Output for 5.5.32
0.074531078338623
Output for 5.5.31
0.077428102493286
Output for 5.5.30
0.076236009597778
Output for 5.5.29
0.05741810798645
Output for 5.5.28
0.075325012207031
Output for 5.5.27
0.071890115737915
Output for 5.5.26
0.07001805305481
Output for 5.5.25
0.075695991516113
Output for 5.5.24
0.077899932861328
Output for 5.4.45
0.055424928665161
Output for 5.4.44
0.055591821670532
Output for 5.4.43
0.08893084526062
Output for 5.4.42
0.05429482460022
Output for 5.4.41
0.056524038314819
Output for 5.4.40
0.05478310585022
Output for 5.4.39
0.055269002914429
Output for 5.4.38
0.054796934127808
Output for 5.4.37
0.055332183837891
Output for 5.4.36
0.053346157073975
Output for 5.4.35
0.053970098495483
Output for 5.4.34
0.061028957366943
Output for 5.4.32
0.061053037643433
Output for 5.4.31
0.069849967956543
Output for 5.4.30
0.077994108200073
Output for 5.4.29
0.072484016418457
Output for 5.4.28
0.069233894348145
Output for 5.4.27
0.057071924209595
Output for 5.3.10, 5.4.26
0.079221963882446
Output for 5.4.25
0.082962036132812
Output for 5.4.24
0.07307505607605
Output for 5.4.23
0.068908929824829
Output for 5.4.22
0.055253028869629
Output for 5.4.21
0.07124400138855
Output for 5.4.20
0.080802917480469
Output for 5.4.19
0.069656133651733
Output for 5.4.18
0.080655097961426
Output for 5.4.17
0.060839176177979
Output for 5.4.16
0.071017026901245
Output for 5.4.15
0.074746131896973
Output for 5.4.14
0.057406902313232
Output for 5.4.13
0.070858001708984
Output for 5.4.12
0.082093000411987
Output for 5.4.11
0.055268049240112
Output for 5.4.10
0.078373193740845
Output for 5.4.9
0.077855825424194
Output for 5.4.8
0.063164949417114
Output for 5.4.7
0.082177877426147
Output for 5.4.6
0.078938007354736
Output for 5.4.5
0.065290927886963
Output for 5.4.4
0.064616203308105
Output for 5.4.3
0.073256969451904
Output for 5.4.2
0.069204092025757
Output for 5.4.1
0.077347040176392
Output for 5.4.0
0.077412128448486
Output for 5.3.29
0.075080156326294
Output for 5.3.28
0.10338282585144
Output for 5.3.27
0.096688985824585
Output for 5.3.26
0.08868408203125
Output for 5.3.25
0.076014041900635
Output for 5.3.24
0.094944000244141
Output for 5.3.23
0.094465017318726
Output for 5.3.22
0.082150936126709
Output for 5.3.21
0.086005926132202
Output for 5.3.20
0.094517946243286
Output for 5.3.19
0.077800989151001
Output for 5.3.18
0.090548992156982
Output for 5.3.17
0.099858999252319
Output for 5.3.16
0.096277952194214
Output for 5.3.15
0.090214014053345
Output for 5.3.14
0.084579944610596
Output for 5.3.13
0.087531805038452
Output for 5.3.12
0.10356688499451
Output for 5.3.11
0.083969116210938
Output for 5.3.9
0.090383052825928
Output for 5.3.8
0.067852020263672
Output for 5.3.7
0.072312116622925
Output for 5.3.6
0.10006594657898
Output for 5.3.5
0.078407049179077
Output for 5.3.4
0.095624923706055
Output for 5.3.3
0.090114831924438
Output for 5.3.2
0.080291032791138
Output for 5.3.1
0.068917989730835
Output for 5.3.0
0.085519075393677
Output for 5.0.0 - 5.2.17
Fatal error: Call to undefined method ReflectionProperty::setAccessible() in /in/UM6bE on line 14
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/UM6bE on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/UM6bE on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/UM6bE on line 5
Process exited with code 255.