3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { const C = 12; public static function test(array $a); } abstract class A { const A = 14; protected static $var = 17; public static function test(array $a){ return static::C; } } class B extends A implements I { const A = 15; public static function test(array $a, $b){ return static::C; } } var_dump(B::test(array(), ''));

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.40.0120.00618.68
8.3.30.0070.00718.96
8.3.20.0000.00820.16
8.3.10.0030.00520.21
8.3.00.0050.00319.67
8.2.170.0110.00422.96
8.2.160.0100.00320.47
8.2.150.0000.00824.18
8.2.140.0070.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00721.97
8.2.110.0060.00322.31
8.2.100.0040.00817.66
8.2.90.0030.00618.93
8.2.80.0040.00417.97
8.2.70.0040.00417.36
8.2.60.0060.00317.67
8.2.50.0030.00618.07
8.2.40.0070.00018.06
8.2.30.0020.00519.12
8.2.20.0040.00417.70
8.2.10.0040.00418.00
8.2.00.0030.00517.61
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0000.01428.09
8.1.240.0030.00623.91
8.1.230.0140.00019.15
8.1.220.0040.00417.74
8.1.210.0050.00218.77
8.1.200.0000.01217.23
8.1.190.0000.00916.97
8.1.180.0080.00018.10
8.1.170.0040.00418.70
8.1.160.0070.00022.00
8.1.150.0040.00418.75
8.1.140.0000.00817.34
8.1.130.0030.00317.67
8.1.120.0000.00817.39
8.1.110.0040.00417.38
8.1.100.0000.00817.36
8.1.90.0000.00717.31
8.1.80.0000.00717.43
8.1.70.0080.00017.27
8.1.60.0040.00417.36
8.1.50.0040.00417.41
8.1.40.0060.00317.34
8.1.30.0040.00417.56
8.1.20.0040.00417.48
8.1.10.0040.00417.29
8.1.00.0030.00517.33
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00718.45
8.0.270.0030.00317.19
8.0.260.0000.00717.20
8.0.250.0060.00017.01
8.0.240.0040.00416.85
8.0.230.0000.00716.97
8.0.220.0040.00416.80
8.0.210.0000.00816.89
8.0.200.0050.00216.84
8.0.190.0050.00216.93
8.0.180.0000.00716.89
8.0.170.0050.00216.93
8.0.160.0070.00016.89
8.0.150.0000.00716.88
8.0.140.0070.00016.86
8.0.130.0050.00013.34
8.0.120.0080.00016.85
8.0.110.0000.00816.79
8.0.100.0000.00816.89
8.0.90.0000.00716.84
8.0.80.0090.00916.85
8.0.70.0050.00316.88
8.0.60.0080.00016.91
8.0.50.0030.00516.80
8.0.30.0120.00616.82
8.0.20.0150.00817.40
8.0.10.0040.00416.85
8.0.00.0090.01116.72
7.4.330.0000.00515.02
7.4.320.0030.00316.49
7.4.300.0070.00016.55
7.4.290.0000.00716.45
7.4.280.0060.00316.48
7.4.270.0000.00716.34
7.4.260.0050.00316.50
7.4.250.0070.00016.48
7.4.240.0030.00316.55
7.4.230.0000.00616.34
7.4.220.0060.01316.65
7.4.210.0100.00316.39
7.4.200.0030.00516.54
7.4.160.0060.00916.61
7.4.150.0100.01017.40
7.4.140.0060.01117.86
7.4.130.0110.00716.37
7.4.120.0080.00816.42
7.4.110.0100.00616.41
7.4.100.0090.00916.59
7.4.90.0070.01016.28
7.4.80.0070.01116.16
7.4.70.0150.00716.52
7.4.60.0000.01616.39
7.4.50.0040.00016.59
7.4.40.0160.00016.68
7.4.30.0110.00416.54
7.4.00.0050.00815.04
7.3.330.0000.00513.20
7.3.320.0000.00513.25
7.3.310.0020.00516.33
7.3.300.0040.00416.31
7.3.290.0070.00716.28
7.3.280.0060.01116.32
7.3.270.0140.00917.40
7.3.260.0090.00916.48
7.3.250.0080.01016.34
7.3.240.0060.01016.33
7.3.230.0000.01816.43
7.3.210.0140.00316.39
7.3.200.0030.02119.39
7.3.190.0140.00416.25
7.3.180.0130.00916.36
7.3.170.0090.00916.33
7.3.160.0060.00916.49
7.3.120.0050.01214.71
7.3.110.0070.01014.51
7.3.100.0070.00914.57
7.3.90.0110.00514.68
7.3.80.0070.00314.97
7.3.70.0070.00814.59
7.3.60.0050.00814.75
7.3.50.0040.00814.68
7.3.40.0090.00914.75
7.3.30.0080.00714.62
7.3.20.0100.00516.61
7.3.10.0050.00816.50
7.3.00.0070.00716.54
7.2.330.0120.00616.32
7.2.320.0030.01516.34
7.2.310.0140.00716.50
7.2.300.0040.01216.48
7.2.290.0030.01416.71
7.2.250.0080.00814.54
7.2.240.0080.01014.81
7.2.230.0070.00515.10
7.2.220.0030.01214.78
7.2.210.0030.01214.72
7.2.200.0030.01015.00
7.2.190.0070.00914.75
7.2.180.0090.00314.71
7.2.170.0060.00914.94
7.2.60.0080.00816.95
7.2.00.0040.01119.04
7.1.330.0050.00915.77
7.1.320.0020.01215.72
7.1.310.0020.01315.70
7.1.300.0090.00115.71
7.1.290.0070.00715.61
7.1.280.0060.00615.65
7.1.270.0040.00815.62
7.1.260.0060.00615.46
7.1.200.0080.00415.74
7.1.100.0030.00917.74
7.1.70.0060.00316.88
7.1.60.0000.02419.32
7.1.50.0060.01216.86
7.1.00.0030.07722.36
7.0.200.0030.00616.59
7.0.140.0070.06722.09
7.0.60.0000.04319.74
7.0.50.0030.08717.94
7.0.40.0030.05020.40
7.0.30.0330.06720.13
7.0.20.0200.04720.33
7.0.10.0200.04320.30
7.0.00.0070.05320.09
5.6.280.0030.07321.11
5.6.210.0030.04020.70
5.6.200.0030.05018.25
5.6.190.0070.05720.63
5.6.180.0230.04020.39
5.6.170.0230.03320.57
5.6.160.0070.05720.71
5.6.150.0070.03318.17
5.6.140.0170.07018.23
5.6.130.0000.05318.11
5.6.120.0100.08320.97
5.6.110.0070.05020.95
5.6.100.0130.05320.97
5.6.90.0100.08320.98
5.6.80.0170.07020.45
5.6.70.4330.04020.43
5.5.350.0130.08320.43
5.5.340.0030.03718.03
5.5.330.0100.07720.19
5.5.320.0330.04020.30
5.5.310.0270.05320.34
5.5.300.0070.05017.96
5.5.290.0030.04017.95
5.5.280.0030.04020.91
5.5.270.0000.08720.64
5.5.260.0070.09320.80
5.5.250.0070.07720.67
5.5.240.0270.07720.04
5.4.450.0230.05719.56
5.4.440.0200.06019.34
5.4.430.0600.05719.60
5.4.420.0770.04719.55
5.4.410.0700.05319.20
5.4.400.0800.04319.15
5.4.390.1000.06318.84
5.4.380.0400.04318.63
5.4.370.0400.05318.74
5.4.360.0400.06718.45
5.4.350.0470.04718.71
5.4.340.0430.05018.80
5.4.320.0060.03712.51
5.4.310.0040.03912.50
5.4.300.0050.03712.50
5.4.290.0050.03812.50
5.4.280.0070.03612.40
5.4.270.0040.03612.40
5.4.260.0050.03712.40
5.4.250.0050.03712.40
5.4.240.0040.03712.40
5.4.230.0080.03612.39
5.4.220.0080.03412.39
5.4.210.0060.03512.39
5.4.200.0070.03512.39
5.4.190.0100.03612.39
5.4.180.0050.03612.39
5.4.170.0050.03712.40
5.4.160.0060.03512.39
5.4.150.0060.03512.39
5.4.140.0050.03812.08
5.4.130.0070.03512.06
5.4.120.0070.03612.02
5.4.110.0050.03812.01
5.4.100.0090.03112.02
5.4.90.0040.03812.02
5.4.80.0040.03712.02
5.4.70.0050.03412.02
5.4.60.0060.04512.01
5.4.50.0050.04412.01
5.4.40.0080.03212.00
5.4.30.0080.03312.00
5.4.20.0050.03512.00
5.4.10.0070.03312.00
5.4.00.0040.03711.48
5.3.290.0070.03712.80
5.3.280.0080.04712.71
5.3.270.0060.04312.72
5.3.260.0060.03912.72
5.3.250.0090.03412.71
5.3.240.0060.03612.72
5.3.230.0040.03812.71
5.3.220.0090.04112.68
5.3.210.0060.03912.68
5.3.200.0060.03612.68
5.3.190.0050.03812.68
5.3.180.0030.03912.67
5.3.170.0030.03912.67
5.3.160.0040.03712.68
5.3.150.0060.03712.68
5.3.140.0020.04012.66
5.3.130.0050.04012.66
5.3.120.0050.04012.66
5.3.110.0050.03912.66
5.3.100.0060.03612.12
5.3.90.0050.03812.11
5.3.80.0100.03112.10
5.3.70.0060.03512.10
5.3.60.0030.03812.08
5.3.50.0060.03512.04
5.3.40.0060.03512.04
5.3.30.0070.03411.99
5.3.20.0040.03611.78
5.3.10.0080.03111.74
5.3.00.0050.03611.73
5.2.170.0040.0309.22
5.2.160.0050.0289.22
5.2.150.0020.0329.22
5.2.140.0020.0329.22
5.2.130.0040.0289.18
5.2.120.0050.0279.18
5.2.110.0040.0299.19
5.2.100.0040.0289.18
5.2.90.0010.0329.18
5.2.80.0030.0319.18
5.2.70.0030.0309.18
5.2.60.0030.0319.13
5.2.50.0030.0339.10
5.2.40.0070.0289.08
5.2.30.0030.0309.05
5.2.20.0060.0279.04
5.2.10.0040.0278.95
5.2.00.0040.0298.81
5.1.60.0040.0248.09
5.1.50.0040.0248.09
5.1.40.0010.0278.07
5.1.30.0050.0248.42
5.1.20.0050.0258.45
5.1.10.0050.0248.17
5.1.00.0030.0268.17
5.0.50.0020.0216.64
5.0.40.0040.0186.50
5.0.30.0010.0336.31
5.0.20.0030.0196.28
5.0.10.0040.0186.25
5.0.00.0030.0316.25
4.4.90.0020.0154.78
4.4.80.0020.0164.75
4.4.70.0020.0164.76
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0040.0234.71
4.4.30.0020.0174.75
4.4.20.0040.0144.84
4.4.10.0010.0194.85
4.4.00.0040.0264.76
4.3.110.0030.0154.67
4.3.100.0040.0134.66
4.3.90.0020.0154.63
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0010.0174.63
4.3.40.0030.0234.54
4.3.30.0030.0143.29
4.3.20.0010.0173.26
4.3.10.0020.0163.22
4.3.00.0070.0236.78

preferences:
39.24 ms | 400 KiB | 5 Q