3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Aself { const AA = 'AA'; public static function get() { return self::AA; } } class Astatic { const AA = 'AA'; public static function get() { return static::AA; } } $t = microtime(true); for ($i = 0; $i < 10000; $i++) { Aself::get(); } echo microtime(true) - $t; echo "\n"; $t = microtime(true); for ($i = 0; $i < 10000; $i++) { Astatic::get(); } echo microtime(true) - $t; echo "\n";
Output for 7.1.0
0.0002131462097168 0.00044488906860352
Output for 7.0.14
0.00039315223693848 0.00084686279296875
Output for 7.0.10
0.00035619735717773 0.00051212310791016
Output for 7.0.9
0.00038599967956543 0.0005791187286377
Output for 7.0.8
0.00033187866210938 0.00052499771118164
Output for 7.0.7
0.00036287307739258 0.00053501129150391
Output for 7.0.6
0.00035500526428223 0.00051283836364746
Output for 7.0.5
0.00029611587524414 0.00044608116149902
Output for 7.0.4
0.00027799606323242 0.00040698051452637
Output for 7.0.3
0.00038504600524902 0.00058293342590332
Output for 7.0.2
0.00030398368835449 0.00048184394836426
Output for 7.0.1
0.00030303001403809 0.00045204162597656
Output for 7.0.0
0.00027203559875488 0.00041413307189941
Output for hhvm-3.12.0
0.0025959014892578 0.002655029296875
Output for hhvm-3.10.0
0.0043530464172363 0.004396915435791
Output for 5.6.28
0.0017740726470947 0.0017209053039551
Output for 5.6.25
0.0012481212615967 0.0012340545654297
Output for 5.6.24
0.0011870861053467 0.0011379718780518
Output for 5.6.23
0.0014579296112061 0.0013630390167236
Output for 5.6.22
0.0011160373687744 0.001093864440918
Output for 5.6.21
0.0015180110931396 0.0015788078308105
Output for 5.6.20
0.0014588832855225 0.0014548301696777
Output for 5.6.19
0.0014770030975342 0.0014989376068115
Output for 5.6.18
0.0013659000396729 0.0012879371643066
Output for 5.6.17
0.001384973526001 0.0013909339904785
Output for 5.6.16
0.000885009765625 0.00086379051208496
Output for 5.6.15
0.00092387199401855 0.0011069774627686
Output for 5.6.14
0.0011289119720459 0.0011489391326904
Output for 5.6.13
0.0015499591827393 0.0017480850219727
Output for 5.6.12
0.0013480186462402 0.0013811588287354
Output for 5.6.11
0.0013911724090576 0.0013959407806396
Output for 5.6.10
0.0014219284057617 0.0014498233795166
Output for 5.6.9
0.0014359951019287 0.0014100074768066
Output for 5.6.8
0.0013589859008789 0.0013818740844727
Output for 5.6.7
0.001431941986084 0.0014488697052002
Output for 5.6.6
0.0015759468078613 0.001568078994751
Output for 5.6.5
0.0015749931335449 0.0014100074768066
Output for 5.6.4
0.0015449523925781 0.0014688968658447
Output for 5.6.3
0.0012218952178955 0.0014028549194336
Output for 5.6.2
0.0014159679412842 0.0015299320220947
Output for 5.6.1
0.0010271072387695 0.001007080078125
Output for 5.6.0
0.0014350414276123 0.001410961151123
Output for 5.5.38
0.001352071762085 0.0013999938964844
Output for 5.5.37
0.0012798309326172 0.00142502784729
Output for 5.5.36
0.001349925994873 0.0013949871063232
Output for 5.5.35
0.0014438629150391 0.0014948844909668
Output for 5.5.34
0.001410961151123 0.0014171600341797
Output for 5.5.33
0.0013079643249512 0.0011639595031738
Output for 5.5.32
0.0013370513916016 0.0013630390167236
Output for 5.5.31
0.0014739036560059 0.0015499591827393
Output for 5.5.30
0.0014140605926514 0.0014159679412842
Output for 5.5.29
0.001025915145874 0.0010650157928467
Output for 5.5.28
0.0011310577392578 0.0010910034179688
Output for 5.5.27
0.0011730194091797 0.0012562274932861
Output for 5.5.26
0.0014019012451172 0.0014119148254395
Output for 5.5.25
0.0013909339904785 0.001410961151123
Output for 5.5.24
0.0011429786682129 0.0011610984802246
Output for 5.5.23
0.0011138916015625 0.0010418891906738
Output for 5.5.22
0.0010898113250732 0.0011138916015625
Output for 5.5.21
0.0010340213775635 0.001072883605957
Output for 5.5.20
0.0013120174407959 0.0014629364013672
Output for 5.5.19
0.001270055770874 0.0012969970703125
Output for 5.5.18
0.0011749267578125 0.0012581348419189
Output for 5.5.16
0.0012309551239014 0.00099396705627441
Output for 5.5.15
0.0010499954223633 0.0011060237884521
Output for 5.5.14
0.0010991096496582 0.0011179447174072
Output for 5.5.13
0.00091195106506348 0.00091791152954102
Output for 5.5.12
0.00086402893066406 0.00092792510986328
Output for 5.5.11
0.00088596343994141 0.00091314315795898
Output for 5.5.10
0.0010831356048584 0.0011279582977295
Output for 5.5.9
0.0013341903686523 0.0013189315795898
Output for 5.5.8
0.00090289115905762 0.00091409683227539
Output for 5.5.7
0.0014219284057617 0.0014708042144775
Output for 5.5.6
0.00089693069458008 0.0010669231414795
Output for 5.5.5
0.00076389312744141 0.00087189674377441
Output for 5.5.4
0.0014069080352783 0.0013139247894287
Output for 5.5.3
0.00089907646179199 0.00094079971313477
Output for 5.5.2
0.00072002410888672 0.00081706047058105
Output for 5.5.1
0.0008997917175293 0.00096297264099121
Output for 5.5.0
0.00087904930114746 0.00089406967163086
Output for 5.4.45
0.0012848377227783 0.0012748241424561
Output for 5.4.44
0.0012271404266357 0.0012280941009521
Output for 5.4.43
0.001068115234375 0.0010879039764404
Output for 5.4.42
0.0012810230255127 0.0012130737304688
Output for 5.4.41
0.001227855682373 0.0012719631195068
Output for 5.4.40
0.0012998580932617 0.0012621879577637
Output for 5.4.39
0.0014019012451172 0.0013809204101562
Output for 5.4.38
0.0014519691467285 0.0015008449554443
Output for 5.4.37
0.0013167858123779 0.0013151168823242
Output for 5.4.36
0.0015518665313721 0.0015628337860107
Output for 5.4.35
0.0013720989227295 0.0014910697937012
Output for 5.4.34
0.0013968944549561 0.0013840198516846
Output for 5.4.32
0.0010709762573242 0.0010850429534912
Output for 5.4.31
0.00085687637329102 0.00084781646728516
Output for 5.4.30
0.00085616111755371 0.00084304809570312
Output for 5.4.29
0.0011200904846191 0.0011360645294189
Output for 5.4.28
0.00085711479187012 0.00085711479187012
Output for 5.4.27
0.00084900856018066 0.0008540153503418
Output for 5.4.26
0.00084996223449707 0.00089502334594727
Output for 5.4.25
0.0013790130615234 0.0013809204101562
Output for 5.4.24
0.0011880397796631 0.0011827945709229
Output for 5.4.23
0.0013420581817627 0.0013439655303955
Output for 5.4.22
0.001060962677002 0.0010581016540527
Output for 5.4.21
0.00083708763122559 0.00084018707275391
Output for 5.4.20
0.00082492828369141 0.00076389312744141
Output for 5.4.19
0.00075387954711914 0.00087499618530273
Output for 5.4.18
0.0011980533599854 0.0017199516296387
Output for 5.4.17
0.00083208084106445 0.00082898139953613
Output for 5.4.16
0.0011639595031738 0.0011200904846191
Output for 5.4.15
0.00082921981811523 0.00083494186401367
Output for 5.4.14
0.00088405609130859 0.00092101097106934
Output for 5.4.13
0.00085806846618652 0.00084614753723145
Output for 5.4.12
0.00083613395690918 0.00083804130554199
Output for 5.4.11
0.00093603134155273 0.00097203254699707
Output for 5.4.10
0.00083589553833008 0.0008389949798584
Output for 5.4.9
0.00083088874816895 0.00083780288696289
Output for 5.4.8
0.00085997581481934 0.0008392333984375
Output for 5.4.7
0.0008699893951416 0.00093317031860352
Output for 5.4.6
0.000946044921875 0.00094294548034668
Output for 5.4.5
0.0014019012451172 0.00082707405090332
Output for 5.4.4
0.0014920234680176 0.0014798641204834
Output for 5.4.3
0.001460075378418 0.0013120174407959
Output for 5.4.2
0.0013208389282227 0.0012500286102295
Output for 5.4.1
0.00118088722229 0.0011248588562012
Output for 5.4.0
0.0018980503082275 0.001539945602417
Output for 5.3.29
0.0023341178894043 0.0023529529571533
Output for 5.3.28
0.0020220279693604 0.0019509792327881
Output for 5.3.27
0.0020990371704102 0.0020921230316162
Output for 5.3.26
0.0021719932556152 0.00189208984375
Output for 5.3.25
0.0021069049835205 0.0021350383758545
Output for 5.3.24
0.0021069049835205 0.0021238327026367
Output for 5.3.23
0.0021250247955322 0.0022258758544922
Output for 5.3.22
0.0020899772644043 0.0021069049835205
Output for 5.3.21
0.003054141998291 0.002993106842041
Output for 5.3.20
0.0020959377288818 0.0021181106567383
Output for 5.3.19
0.0021319389343262 0.0021238327026367
Output for 5.3.18
0.0020830631256104 0.0021719932556152
Output for 5.3.17
0.0020639896392822 0.002094030380249
Output for 5.3.16
0.0023000240325928 0.0021688938140869
Output for 5.3.15
0.0020861625671387 0.0024800300598145
Output for 5.3.14
0.0029580593109131 0.0029430389404297
Output for 5.3.13
0.0037109851837158 0.0036551952362061
Output for 5.3.12
0.0035121440887451 0.0034730434417725
Output for 5.3.11
0.0031540393829346 0.002659797668457
Output for 5.3.10
0.0035238265991211 0.0035250186920166
Output for 5.3.9
0.0032379627227783 0.0031270980834961
Output for 5.3.8
0.0036358833312988 0.0050570964813232
Output for 5.3.7
0.0036959648132324 0.0037200450897217
Output for 5.3.6
0.0035269260406494 0.0035791397094727
Output for 5.3.5
0.003242015838623 0.0029201507568359
Output for 5.3.4
0.0034928321838379 0.0034501552581787
Output for 5.3.3
0.0034880638122559 0.0033159255981445
Output for 5.3.2
0.0035209655761719 0.0035619735717773
Output for 5.3.1
0.0023770332336426 0.0028259754180908
Output for 5.3.0
0.0027968883514404 0.0030269622802734
Output for 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_STATIC in /in/61H5u on line 15
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STATIC in /in/61H5u on line 15
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/61H5u on line 4
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_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/61H5u on line 4
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/61H5u on line 4
Process exited with code 255.