3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Aself { protected static function g0() { } public static function get() { return self::g0(); } } class Astatic { protected static function g0() { } public static function get() { return static::g0(); } } $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.00067687034606934 0.00091409683227539
Output for 7.0.14
0.00085687637329102 0.00094985961914062
Output for 7.0.7
0.00065898895263672 0.00065803527832031
Output for 7.0.6
0.0006868839263916 0.00068378448486328
Output for 7.0.5
0.00078487396240234 0.00081801414489746
Output for 7.0.4
0.00084495544433594 0.00087118148803711
Output for 7.0.3
0.00079488754272461 0.00079011917114258
Output for 7.0.2
0.00071501731872559 0.0007781982421875
Output for 7.0.1
0.00080513954162598 0.00076389312744141
Output for 7.0.0
0.00071597099304199 0.00069403648376465
Output for hhvm-3.12.0
0.0021581649780273 0.0019540786743164
Output for hhvm-3.10.0
0.0021979808807373 0.0023951530456543
Output for 5.6.28
0.0022108554840088 0.0024149417877197
Output for 5.6.22
0.001187801361084 0.0011379718780518
Output for 5.6.21
0.0012638568878174 0.0011429786682129
Output for 5.6.20
0.0014219284057617 0.0014300346374512
Output for 5.6.19
0.0019428730010986 0.0022079944610596
Output for 5.6.18
0.002007007598877 0.0018188953399658
Output for 5.6.17
0.0019519329071045 0.0018138885498047
Output for 5.6.16
0.0016908645629883 0.0017111301422119
Output for 5.6.15
0.0014288425445557 0.001431941986084
Output for 5.6.14
0.0017919540405273 0.0018119812011719
Output for 5.6.13
0.0020201206207275 0.0020310878753662
Output for 5.6.12
0.0018548965454102 0.0018088817596436
Output for 5.6.11
0.002126932144165 0.0014731884002686
Output for 5.6.10
0.0013251304626465 0.0013058185577393
Output for 5.6.9
0.0020699501037598 0.002068042755127
Output for 5.6.8
0.0017430782318115 0.0015130043029785
Output for 5.6.7
0.0017220973968506 0.0016889572143555
Output for 5.6.6
0.0013580322265625 0.0013630390167236
Output for 5.6.5
0.0013930797576904 0.0014200210571289
Output for 5.6.4
0.0018620491027832 0.0018579959869385
Output for 5.6.3
0.0018370151519775 0.0018370151519775
Output for 5.6.2
0.0017378330230713 0.0017859935760498
Output for 5.6.1
0.0019280910491943 0.0019221305847168
Output for 5.6.0
0.00136399269104 0.0013320446014404
Output for 5.5.36
0.001676082611084 0.001708984375
Output for 5.5.35
0.0014030933380127 0.0013971328735352
Output for 5.5.34
0.0018389225006104 0.0019619464874268
Output for 5.5.33
0.00201416015625 0.0021240711212158
Output for 5.5.32
0.0019190311431885 0.0020220279693604
Output for 5.5.31
0.0017731189727783 0.0018479824066162
Output for 5.5.30
0.0016560554504395 0.0015890598297119
Output for 5.5.29
0.0016369819641113 0.0015189647674561
Output for 5.5.28
0.001410961151123 0.0014030933380127
Output for 5.5.27
0.0012879371643066 0.0012581348419189
Output for 5.5.26
0.001945972442627 0.0018620491027832
Output for 5.5.25
0.0016829967498779 0.0016589164733887
Output for 5.5.24
0.0021169185638428 0.0019080638885498
Output for 5.5.23
0.0014369487762451 0.001488208770752
Output for 5.5.22
0.001288890838623 0.001317024230957
Output for 5.5.21
0.0015780925750732 0.0016119480133057
Output for 5.5.20
0.0019400119781494 0.0019059181213379
Output for 5.5.19
0.0017409324645996 0.0017969608306885
Output for 5.5.18
0.0016469955444336 0.0016610622406006
Output for 5.5.16
0.0015170574188232 0.0016050338745117
Output for 5.5.15
0.0011429786682129 0.0011420249938965
Output for 5.5.14
0.0011990070343018 0.0012729167938232
Output for 5.5.13
0.0018429756164551 0.0018360614776611
Output for 5.5.12
0.0013461112976074 0.0013511180877686
Output for 5.5.11
0.00098896026611328 0.0010039806365967
Output for 5.5.10
0.0010890960693359 0.0010960102081299
Output for 5.5.9
0.0011041164398193 0.0010890960693359
Output for 5.5.8
0.0022308826446533 0.0022311210632324
Output for 5.5.7
0.0014820098876953 0.0015380382537842
Output for 5.5.6
0.001115083694458 0.0011179447174072
Output for 5.5.5
0.0012540817260742 0.0010991096496582
Output for 5.5.4
0.00098800659179688 0.00091910362243652
Output for 5.5.3
0.0013179779052734 0.0013971328735352
Output for 5.5.2
0.0019829273223877 0.001971960067749
Output for 5.5.1
0.001115083694458 0.0011370182037354
Output for 5.5.0
0.0012989044189453 0.0012469291687012
Output for 5.4.45
0.0010731220245361 0.0010881423950195
Output for 5.4.44
0.0017549991607666 0.0017549991607666
Output for 5.4.43
0.0018880367279053 0.0018019676208496
Output for 5.4.42
0.0017678737640381 0.0017838478088379
Output for 5.4.41
0.0012540817260742 0.0012469291687012
Output for 5.4.40
0.0018630027770996 0.0019941329956055
Output for 5.4.39
0.0015878677368164 0.0015931129455566
Output for 5.4.38
0.0016438961029053 0.0016329288482666
Output for 5.4.37
0.001392126083374 0.0013980865478516
Output for 5.4.36
0.0019099712371826 0.0019030570983887
Output for 5.4.35
0.0013360977172852 0.0015039443969727
Output for 5.4.34
0.0017139911651611 0.0017378330230713
Output for 5.4.32
0.0012729167938232 0.0012631416320801
Output for 5.4.31
0.0016632080078125 0.0016789436340332
Output for 5.4.30
0.0014069080352783 0.0015408992767334
Output for 5.4.29
0.0013749599456787 0.0013768672943115
Output for 5.4.28
0.00094413757324219 0.00091099739074707
Output for 5.4.27
0.0010790824890137 0.0010659694671631
Output for 5.4.26
0.00095295906066895 0.0010511875152588
Output for 5.4.25
0.0010831356048584 0.0010759830474854
Output for 5.4.24
0.0010850429534912 0.0010809898376465
Output for 5.4.23
0.0012331008911133 0.0011560916900635
Output for 5.4.22
0.0013730525970459 0.0013940334320068
Output for 5.4.21
0.00091695785522461 0.00093793869018555
Output for 5.4.20
0.0011570453643799 0.0012290477752686
Output for 5.4.19
0.0013091564178467 0.0010969638824463
Output for 5.4.18
0.00092387199401855 0.00089597702026367
Output for 5.4.17
0.0018038749694824 0.0017838478088379
Output for 5.4.16
0.001471996307373 0.0014948844909668
Output for 5.4.15
0.0012757778167725 0.001227855682373
Output for 5.4.14
0.0013880729675293 0.0013811588287354
Output for 5.4.13
0.0011451244354248 0.0011351108551025
Output for 5.4.12
0.0011038780212402 0.0011041164398193
Output for 5.4.11
0.00099492073059082 0.0010001659393311
Output for 5.4.10
0.0009157657623291 0.00092315673828125
Output for 5.4.9
0.0010700225830078 0.0010650157928467
Output for 5.4.8
0.0010838508605957 0.0011301040649414
Output for 5.4.7
0.0011191368103027 0.0011329650878906
Output for 5.4.6
0.0013070106506348 0.001288890838623
Output for 5.4.5
0.0011599063873291 0.0013198852539062
Output for 5.4.4
0.0018298625946045 0.0019500255584717
Output for 5.4.3
0.0015709400177002 0.0018219947814941
Output for 5.4.2
0.0018749237060547 0.0019078254699707
Output for 5.4.1
0.0018560886383057 0.0018370151519775
Output for 5.4.0
0.0019340515136719 0.001943826675415
Output for 5.3.29
0.0031478404998779 0.0031371116638184
Output for 5.3.28
0.0031991004943848 0.0032060146331787
Output for 5.3.27
0.002659797668457 0.0026829242706299
Output for 5.3.26
0.0028018951416016 0.0027258396148682
Output for 5.3.25
0.0031712055206299 0.0031688213348389
Output for 5.3.24
0.003593921661377 0.0036041736602783
Output for 5.3.23
0.0031559467315674 0.0032269954681396
Output for 5.3.22
0.004688024520874 0.0046858787536621
Output for 5.3.21
0.0034019947052002 0.0031430721282959
Output for 5.3.20
0.0031259059906006 0.003108024597168
Output for 5.3.19
0.0042040348052979 0.0041260719299316
Output for 5.3.18
0.003162145614624 0.0031969547271729
Output for 5.3.17
0.0038390159606934 0.0039901733398438
Output for 5.3.16
0.0030970573425293 0.0030889511108398
Output for 5.3.15
0.0031070709228516 0.0031039714813232
Output for 5.3.14
0.0037209987640381 0.00372314453125
Output for 5.3.13
0.0052540302276611 0.0051488876342773
Output for 5.3.12
0.0058050155639648 0.0056161880493164
Output for 5.3.11
0.0049979686737061 0.0050690174102783
Output for 5.3.10
0.0053541660308838 0.0052440166473389
Output for 5.3.9
0.0042939186096191 0.0042970180511475
Output for 5.3.8
0.004127025604248 0.0044050216674805
Output for 5.3.7
0.0032429695129395 0.00319504737854
Output for 5.3.6
0.0052680969238281 0.005256175994873
Output for 5.3.5
0.0051119327545166 0.0049459934234619
Output for 5.3.4
0.0054638385772705 0.0054690837860107
Output for 5.3.3
0.0039310455322266 0.0044138431549072
Output for 5.3.2
0.005436897277832 0.0054459571838379
Output for 5.3.1
0.0049369335174561 0.0046889781951904
Output for 5.3.0
0.0037350654602051 0.003770112991333
Output for 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_STATIC in /in/JpYtb on line 17
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STATIC in /in/JpYtb on line 17
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/JpYtb 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_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/JpYtb 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/JpYtb on line 4
Process exited with code 255.