3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Service { protected static $_var = 'S'; public static function test() { echo static::$_var . PHP_EOL; } } class ServiceA extends Service { protected static $_var = 'A'; } class ServiceAB extends ServiceA { protected static $_var = 'AB'; } class ServiceC extends Service { } ServiceA::test(); ServiceAB::test(); ServiceC::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.0180.00018.31
8.3.50.0100.00821.21
8.3.40.0140.00018.84
8.3.30.0140.00020.12
8.3.20.0040.00420.34
8.3.10.0000.00820.88
8.3.00.0050.00322.40
8.2.180.0140.00416.50
8.2.170.0040.01122.96
8.2.160.0070.00722.08
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00420.59
8.2.110.0040.00419.45
8.2.100.0070.00417.77
8.2.90.0040.00419.27
8.2.80.0040.00419.25
8.2.70.0000.00917.34
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0000.00818.15
8.2.30.0040.00419.48
8.2.20.0040.00417.66
8.2.10.0040.00417.62
8.2.00.0040.00417.61
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00022.63
8.1.230.0000.01020.97
8.1.220.0070.00018.77
8.1.210.0090.00018.84
8.1.200.0060.00317.47
8.1.190.0060.00317.40
8.1.180.0040.00418.10
8.1.170.0000.00918.44
8.1.160.0040.00418.82
8.1.150.0040.00418.63
8.1.140.0040.00417.41
8.1.130.0030.00317.67
8.1.120.0030.00317.39
8.1.110.0040.00317.36
8.1.100.0040.00417.40
8.1.90.0030.00617.26
8.1.80.0000.00717.40
8.1.70.0070.00017.27
8.1.60.0000.00917.40
8.1.50.0050.00217.48
8.1.40.0000.00717.42
8.1.30.0040.00417.55
8.1.20.0060.00317.57
8.1.10.0000.00717.55
8.1.00.0000.00717.35
8.0.300.0070.00019.93
8.0.290.0070.00017.16
8.0.280.0030.00318.43
8.0.270.0030.00517.25
8.0.260.0080.00016.71
8.0.250.0030.00316.94
8.0.240.0040.00416.91
8.0.230.0080.00016.95
8.0.220.0030.00316.88
8.0.210.0070.00016.87
8.0.200.0030.00316.82
8.0.190.0030.00316.96
8.0.180.0050.00216.95
8.0.170.0080.00016.94
8.0.160.0030.00316.97
8.0.150.0000.00716.71
8.0.140.0050.00516.78
8.0.130.0030.00613.25
8.0.120.0050.00316.73
8.0.110.0000.00716.80
8.0.100.0000.00716.77
8.0.90.0000.00816.89
8.0.80.0030.01416.76
8.0.70.0070.00016.74
8.0.60.0000.00716.72
8.0.50.0000.00716.62
8.0.30.0080.01016.88
8.0.20.0100.00817.40
8.0.10.0000.00816.88
8.0.00.0140.01216.94
7.4.330.0050.00016.84
7.4.320.0020.00516.45
7.4.300.0060.00016.33
7.4.290.0030.00316.39
7.4.280.0030.00316.56
7.4.270.0030.00316.54
7.4.260.0030.00613.23
7.4.250.0000.00716.49
7.4.240.0030.00516.53
7.4.230.0000.00716.22
7.4.220.0100.01016.46
7.4.210.0090.00816.40
7.4.200.0000.00716.54
7.4.190.0080.00016.68
7.4.160.0170.00716.34
7.4.150.0140.00417.40
7.4.140.0100.01017.86
7.4.130.0080.00816.55
7.4.120.0100.00816.45
7.4.110.0070.01016.48
7.4.100.0070.01416.58
7.4.90.0070.01016.57
7.4.80.0100.01119.39
7.4.70.0120.00916.33
7.4.60.0070.01116.47
7.4.50.0030.00616.09
7.4.40.0090.00922.77
7.4.30.0130.00616.57
7.4.00.0060.00914.63
7.3.330.0000.00513.13
7.3.320.0000.00613.16
7.3.310.0030.00316.36
7.3.300.0020.00516.25
7.3.290.0110.00316.35
7.3.280.0100.00716.29
7.3.270.0100.00717.40
7.3.260.0090.00918.24
7.3.250.0130.00616.39
7.3.240.0130.00316.25
7.3.230.0030.01416.39
7.3.210.0070.01016.50
7.3.200.0140.00319.39
7.3.190.0140.00716.57
7.3.180.0080.00816.57
7.3.170.0150.00616.39
7.3.160.0130.00316.37
7.3.120.0070.00714.65
7.2.330.0120.00616.39
7.2.320.0030.01416.65
7.2.310.0100.01016.79
7.2.300.0070.01516.48
7.2.290.0000.01616.26
7.2.00.0030.01018.93
7.1.100.0090.00317.83
7.1.70.0060.00917.00
7.1.60.0080.00319.17
7.1.50.0030.02216.63
7.1.00.0100.04322.44
7.0.200.0770.00314.89
7.0.140.0070.07022.11
7.0.80.0130.08719.87
7.0.70.0100.06019.87
7.0.60.0170.07019.98
7.0.50.0130.07720.35
7.0.40.0170.06719.96
7.0.30.0100.05320.05
7.0.20.0070.05320.10
7.0.10.0070.08020.18
7.0.00.0030.05720.09
5.6.280.0070.09021.11
5.6.230.0100.08020.68
5.6.220.0030.08320.68
5.6.210.0070.06020.63
5.6.200.0030.09321.08
5.6.190.0070.07321.18
5.6.180.0100.08021.04
5.6.170.0130.07721.11
5.6.160.0070.08021.09
5.6.150.0030.08721.08
5.6.140.0070.08020.92
5.6.130.0070.08721.03
5.6.120.0070.08321.09
5.6.110.0100.07721.10
5.6.100.0070.08021.07
5.6.90.0100.08321.15
5.6.80.0000.08720.46
5.6.70.0070.06020.43
5.6.60.0130.04720.37
5.6.50.0170.05720.35
5.6.40.0070.05320.44
5.6.30.0070.08020.48
5.6.20.0070.04720.38
5.6.10.0200.06320.39
5.6.00.0130.07720.36
5.5.370.0100.06020.43
5.5.360.0030.04720.51
5.5.350.0070.04720.45
5.5.340.0070.07720.88
5.5.330.0130.07320.91
5.5.320.0100.08020.77
5.5.310.0100.07720.89
5.5.300.0070.05720.89
5.5.290.0070.08720.61
5.5.280.0100.08020.86
5.5.270.0070.08320.77
5.5.260.0070.08320.89
5.5.250.0170.06320.69
5.5.240.0070.06320.22
5.5.230.0100.08020.27
5.5.220.0070.05020.14
5.5.210.0070.04320.14
5.5.200.0170.06720.27
5.5.190.0170.06320.13
5.5.180.0030.06720.25
5.5.160.0000.05020.21
5.5.150.0030.06320.24
5.5.140.0100.06020.26
5.5.130.0100.04320.14
5.5.120.0100.05020.26
5.5.110.0070.05020.11
5.5.100.0000.08320.05
5.5.90.0130.03720.16
5.5.80.0030.07320.17
5.5.70.0070.08720.09
5.5.60.0070.05320.01
5.5.50.0070.06320.10
5.5.40.0030.05020.12
5.5.30.0070.07320.15
5.5.20.0170.06720.09
5.5.10.0100.05020.06
5.5.00.0030.08020.03
5.4.450.0070.08019.42
5.4.440.0030.05319.43
5.4.430.0100.07319.35
5.4.420.0070.05019.35
5.4.410.0130.06719.32
5.4.400.0000.08319.04
5.4.390.0070.06319.04
5.4.380.0070.05318.90
5.4.370.0130.07019.20
5.4.360.0070.04719.24
5.4.350.0100.07319.09
5.4.340.0030.04319.08
5.4.320.0200.06719.20
5.4.310.0030.07719.23
5.4.300.0030.07719.17
5.4.290.0200.06019.09
5.4.280.0100.07719.03
5.4.270.0030.07019.02
5.4.260.0100.08019.09
5.4.250.0100.06319.02
5.4.240.0030.08018.90
5.4.230.0100.07719.04
5.4.220.0070.06319.04
5.4.210.0030.07319.02
5.4.200.0030.07718.87
5.4.190.0070.07719.21
5.4.180.0100.07018.86
5.4.170.0030.06718.93
5.4.160.0000.05019.00
5.4.150.0030.04019.11
5.4.140.0100.03016.39
5.4.130.0070.03716.47
5.4.120.0070.04716.56
5.4.110.0070.03316.45
5.4.100.0000.03716.44
5.4.90.0000.03716.45
5.4.80.0030.05316.36
5.4.70.0000.03316.45
5.4.60.0030.03716.26
5.4.50.0030.05716.46
5.4.40.0030.03716.45
5.4.30.0100.03016.30
5.4.20.0070.03716.46
5.4.10.0000.04016.41
5.4.00.0070.03315.69
5.3.290.0100.05314.77
5.3.280.0030.08014.75
5.3.270.0100.07014.53
5.3.260.0000.04314.63
5.3.250.0030.05014.62
5.3.240.0030.05014.61
5.3.230.0030.03714.61
5.3.220.0070.05314.49
5.3.210.0030.03714.57
5.3.200.0070.03314.70
5.3.190.0100.04014.49
5.3.180.0070.03314.59
5.3.170.0000.06014.55
5.3.160.0000.05314.63
5.3.150.0030.04714.48
5.3.140.0070.07314.54
5.3.130.0100.04314.56
5.3.120.0000.04014.61
5.3.110.0000.04014.56
5.3.100.0070.03314.00
5.3.90.0030.03714.16
5.3.80.0070.07314.13
5.3.70.0200.02013.92
5.3.60.0030.05314.14
5.3.50.0000.03313.96
5.3.40.0100.03013.86
5.3.30.0070.02713.92
5.3.20.0030.03013.76
5.3.10.0030.03713.76
5.3.00.0030.03713.76
5.2.170.0070.03713.76
5.2.160.0000.03013.76
5.2.150.0070.02313.76
5.2.140.0000.03313.76
5.2.130.0030.03313.76
5.2.120.0000.03013.76
5.2.110.0030.04313.76
5.2.100.0030.04713.76
5.2.90.0100.02013.76
5.2.80.0000.03713.76
5.2.70.0000.03013.76
5.2.60.0000.03313.76
5.2.50.0000.03313.76
5.2.40.0030.05313.76
5.2.30.0000.03713.76
5.2.20.0070.02013.76
5.2.10.0000.03013.76
5.2.00.0000.05713.76
5.1.60.0000.03013.76
5.1.50.0030.02313.76
5.1.40.0000.05713.76
5.1.30.0130.05713.76
5.1.20.0100.05013.76
5.1.10.0130.03713.76
5.1.00.0070.04013.76
5.0.50.0030.04713.76
5.0.40.0070.04313.76
5.0.30.0030.07013.76
5.0.20.0030.04713.76
5.0.10.0100.03713.76
5.0.00.0000.06013.76
4.4.90.0030.01313.76
4.4.80.0070.01013.76
4.4.70.0100.00713.76
4.4.60.0000.01713.76
4.4.50.0000.01713.76
4.4.40.0030.02013.76
4.4.30.0000.03013.76
4.4.20.0000.03313.76
4.4.10.0070.02313.76
4.4.00.0030.05313.76
4.3.110.0070.02713.76
4.3.100.0030.02713.76
4.3.90.0030.02713.76
4.3.80.0030.05013.76
4.3.70.0000.03713.76
4.3.60.0000.03013.76
4.3.50.0070.03013.76
4.3.40.0000.04313.76
4.3.30.0030.02713.76
4.3.20.0000.03713.76
4.3.10.0000.02713.76
4.3.00.0000.03713.76

preferences:
36.25 ms | 401 KiB | 5 Q