3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { protected static function whoami() { echo "Base "; } public static function whoareyou() { static::whoami(); } } class A extends Base { public static function test() { Base::whoareyou(); self::whoareyou(); parent::whoareyou(); A::whoreareyou(); static::whoareyou(); } public static function whoami() { echo "A "; } } class B extends A { public static function whoami() { echo "B "; } } B::test();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00718.43
8.3.50.0120.00316.59
8.3.40.0120.00318.84
8.3.30.0070.00718.64
8.3.20.0000.00818.98
8.3.10.0040.00421.68
8.3.00.0040.00419.54
8.2.180.0110.00716.63
8.2.170.0110.00422.96
8.2.160.0030.01020.35
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0090.00020.52
8.2.120.0070.00026.35
8.2.110.0030.00620.25
8.2.100.0070.00417.91
8.2.90.0080.00019.16
8.2.80.0040.00417.97
8.2.70.0050.00317.61
8.2.60.0060.00318.03
8.2.50.0030.00518.10
8.2.40.0040.00422.33
8.2.30.0000.00719.16
8.2.20.0000.00717.88
8.2.10.0020.00518.02
8.2.00.0000.00718.01
8.1.280.0000.01425.92
8.1.270.0040.00421.91
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0000.01020.58
8.1.230.0110.00019.01
8.1.220.0050.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0050.00318.57
8.1.160.0030.00318.85
8.1.150.0000.00820.61
8.1.140.0030.00719.44
8.1.130.0040.00418.63
8.1.120.0000.00717.34
8.1.110.0080.00017.33
8.1.100.0070.00017.25
8.1.90.0090.00017.34
8.1.80.0060.00317.29
8.1.70.0070.00017.34
8.1.60.0000.00817.49
8.1.50.0000.00817.37
8.1.40.0060.00617.52
8.1.30.0080.00017.52
8.1.20.0030.00717.61
8.1.10.0040.00417.48
8.1.00.0050.00217.32
8.0.300.0080.00018.77
8.0.290.0050.00216.75
8.0.280.0030.00318.55
8.0.270.0030.00317.17
8.0.260.0030.00316.79
8.0.250.0060.00017.00
8.0.240.0050.00316.86
8.0.230.0000.00816.98
8.0.220.0030.00316.77
8.0.210.0080.00016.93
8.0.200.0000.01016.99
8.0.190.0030.00517.00
8.0.180.0040.00416.89
8.0.170.0030.00316.92
8.0.160.0000.00716.89
8.0.150.0070.00016.81
8.0.140.0000.00716.74
8.0.130.0050.00013.31
8.0.120.0000.00716.74
8.0.110.0070.00016.75
8.0.100.0040.00416.95
8.0.90.0000.00716.96
8.0.80.0090.00616.87
8.0.70.0000.00716.79
8.0.60.0000.00816.84
8.0.50.0070.00016.82
8.0.30.0080.01117.15
8.0.20.0070.01117.40
8.0.10.0040.00416.91
8.0.00.0110.00616.46
7.4.330.0050.00015.55
7.4.320.0060.00016.43
7.4.300.0030.00316.59
7.4.290.0030.00316.63
7.4.280.0080.00016.52
7.4.270.0070.00016.47
7.4.260.0030.00313.28
7.4.250.0040.00416.54
7.4.240.0040.00416.57
7.4.230.0030.00316.63
7.4.220.0130.00616.50
7.4.210.0080.01016.35
7.4.200.0030.00316.42
7.4.160.0040.01216.57
7.4.150.0190.00017.40
7.4.140.0100.00917.86
7.4.130.0060.01316.52
7.4.120.0100.00916.41
7.4.110.0060.01916.58
7.4.100.0080.00816.38
7.4.90.0140.00316.42
7.4.80.0110.00519.39
7.4.70.0080.00816.63
7.4.60.0030.01316.26
7.4.50.0060.00916.41
7.4.40.0130.00316.52
7.4.30.0060.01216.29
7.4.00.0060.01115.09
7.3.330.0000.00513.29
7.3.320.0020.00313.44
7.3.310.0070.00016.18
7.3.300.0070.00016.32
7.3.290.0000.00716.41
7.3.280.0080.00816.36
7.3.270.0120.00617.40
7.3.260.0070.01316.60
7.3.250.0100.00916.35
7.3.240.0130.00916.55
7.3.230.0090.00916.29
7.3.210.0140.00316.46
7.3.200.0140.00616.47
7.3.190.0080.00816.62
7.3.180.0110.00516.59
7.3.170.0050.01116.57
7.3.160.0080.00816.52
7.3.120.0090.00814.86
7.3.110.0080.00814.81
7.3.100.0060.01014.61
7.3.90.0000.01114.87
7.3.80.0020.01214.72
7.3.70.0060.00614.59
7.3.60.0060.00714.77
7.3.50.0030.01214.76
7.3.40.0050.00914.78
7.3.30.0090.00614.83
7.3.20.0090.00516.60
7.3.10.0060.00616.54
7.3.00.0070.00816.53
7.2.330.0130.00616.30
7.2.320.0030.01416.23
7.2.310.0110.00516.36
7.2.300.0090.01216.60
7.2.290.0120.00916.29
7.2.250.0040.01114.81
7.2.240.0080.00714.77
7.2.230.0090.00614.94
7.2.220.0070.00715.09
7.2.210.0080.00814.99
7.2.200.0100.00714.78
7.2.190.0050.01014.93
7.2.180.0030.01215.08
7.2.170.0030.01214.75
7.2.160.0070.01114.90
7.2.150.0080.00816.79
7.2.140.0070.00716.77
7.2.130.0000.01316.66
7.2.120.0070.01016.59
7.2.110.0070.01016.80
7.2.100.0050.00716.73
7.2.90.0120.00216.91
7.2.80.0050.00916.80
7.2.70.0060.01016.74
7.2.60.0080.00816.65
7.2.50.0050.01016.93
7.2.40.0090.00616.84
7.2.30.0060.00816.80
7.2.20.0110.00516.69
7.2.10.0050.00916.62
7.2.00.0070.01117.71
7.1.330.0060.01015.69
7.1.320.0110.00415.68
7.1.310.0030.00915.86
7.1.300.0050.00815.54
7.1.290.0050.01015.54
7.1.280.0100.00415.54
7.1.270.0070.00615.50
7.1.260.0080.00915.58
7.1.250.0110.00615.58
7.1.240.0000.01715.52
7.1.230.0040.01115.26
7.1.220.0060.00615.79
7.1.210.0030.01015.64
7.1.200.0060.00415.71
7.1.190.0040.00415.39
7.1.180.0040.00815.62
7.1.170.0080.00815.62
7.1.160.0110.00615.64
7.1.150.0030.01015.45
7.1.140.0030.00615.55
7.1.130.0000.01515.52
7.1.120.0040.01215.54
7.1.110.0040.00715.88
7.1.100.0030.01116.75
7.1.90.0000.01215.75
7.1.80.0070.01015.43
7.1.70.0100.00516.23
7.1.60.2250.00824.34
7.1.50.1940.01024.06
7.1.40.1470.01024.15
7.1.30.2720.01124.12
7.1.20.1430.01124.08
7.1.10.1250.00915.12
7.1.00.1220.00515.11
7.0.330.0040.00715.40
7.0.320.0100.00715.16
7.0.310.0030.01015.20
7.0.300.0090.00015.38
7.0.290.0060.00315.23
7.0.280.0040.00414.98
7.0.270.0060.00615.33
7.0.260.0140.00315.43
7.0.250.0070.00415.45
7.0.240.0070.00715.13
7.0.230.0080.00315.34
7.0.220.0030.01014.96
7.0.210.0070.00715.51
7.0.200.2150.00915.28
7.0.190.1770.01315.03
7.0.180.1950.01514.77
7.0.170.2530.00414.71
7.0.160.1630.00714.84
7.0.150.1120.01314.87
7.0.140.1010.01014.73
7.0.130.1180.01414.93
7.0.120.1160.00814.87
7.0.110.1070.01314.78
7.0.100.1070.01114.79
7.0.90.0800.00814.98
7.0.80.1050.01214.79
7.0.70.0950.00714.66
7.0.60.1040.00514.67
7.0.50.1080.00814.91
7.0.40.0670.01213.89
7.0.30.0920.01414.08
7.0.20.0720.01013.83
7.0.10.1050.01513.75
7.0.00.1020.01113.78
5.6.380.0100.00314.06

preferences:
82.45 ms | 401 KiB | 5 Q