3v4l.org

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

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.0140.00718.43
8.3.50.0140.00522.00
8.3.40.0110.00418.67
8.3.30.0090.00619.17
8.3.20.0050.00219.99
8.3.10.0000.00820.58
8.3.00.0050.00319.56
8.2.180.0120.00316.63
8.2.170.0030.01222.96
8.2.160.0060.00920.35
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.05
8.2.110.0050.00522.20
8.2.100.0040.00817.83
8.2.90.0080.00017.72
8.2.80.0000.00718.03
8.2.70.0050.00317.50
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0000.00818.19
8.2.30.0020.00519.12
8.2.20.0040.00417.59
8.2.10.0040.00418.04
8.2.00.0050.00317.60
8.1.280.0040.01425.92
8.1.270.0030.00623.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00520.37
8.1.230.0110.00017.70
8.1.220.0050.00317.74
8.1.210.0030.00618.84
8.1.200.0050.00517.23
8.1.190.0050.00317.22
8.1.180.0080.00018.10
8.1.170.0000.00818.55
8.1.160.0000.00822.05
8.1.150.0030.00618.88
8.1.140.0040.00417.38
8.1.130.0030.00317.75
8.1.120.0000.00717.40
8.1.110.0040.00417.32
8.1.100.0000.00817.40
8.1.90.0070.00017.30
8.1.80.0000.00717.38
8.1.70.0030.00317.35
8.1.60.0030.00517.50
8.1.50.0030.00517.35
8.1.40.0040.00417.32
8.1.30.0060.00317.49
8.1.20.0040.00417.53
8.1.10.0040.00417.42
8.1.00.0040.00417.42
8.0.300.0070.00019.86
8.0.290.0050.00316.75
8.0.280.0000.00618.32
8.0.270.0000.00717.29
8.0.260.0040.00417.32
8.0.250.0030.00316.85
8.0.240.0030.00516.93
8.0.230.0030.00516.98
8.0.220.0030.00316.90
8.0.210.0030.00316.90
8.0.200.0070.00016.92
8.0.190.0000.00717.00
8.0.180.0080.00016.86
8.0.170.0040.00416.80
8.0.160.0000.00716.82
8.0.150.0000.00816.69
8.0.140.0040.00416.66
8.0.130.0030.00313.25
8.0.120.0040.00416.81
8.0.110.0050.00216.80
8.0.100.0040.00416.83
8.0.90.0030.00516.62
8.0.80.0060.01216.77
8.0.70.0030.00516.88
8.0.60.0040.00416.80
8.0.50.0000.00816.80
8.0.30.0100.00916.95
8.0.20.0080.01117.40
8.0.10.0000.00817.01
8.0.00.0080.01116.75
7.4.330.0050.00015.02
7.4.320.0030.00316.29
7.4.300.0030.00316.41
7.4.290.0040.00416.45
7.4.280.0000.00916.52
7.4.270.0000.00716.39
7.4.260.0000.00713.27
7.4.250.0080.00016.49
7.4.240.0040.00416.32
7.4.230.0000.00716.44
7.4.220.0060.01116.30
7.4.210.0090.00616.38
7.4.200.0030.00316.18
7.4.160.0080.01316.31
7.4.150.0220.00317.40
7.4.140.0050.01317.86
7.4.130.0110.00816.56
7.4.120.0110.00816.54
7.4.110.0090.01316.53
7.4.100.0120.01216.54
7.4.90.0130.00316.40
7.4.80.0150.00416.55
7.4.70.0120.00416.50
7.4.60.0040.01216.46
7.4.50.0030.00516.61
7.4.40.0000.01516.47
7.4.30.0000.01716.24
7.4.00.0110.00614.98
7.3.330.0000.00813.30
7.3.320.0000.00513.11
7.3.310.0000.00716.13
7.3.300.0030.00316.35
7.3.290.0060.01316.29
7.3.280.0070.01316.34
7.3.270.0100.01317.40
7.3.260.0090.00916.31
7.3.250.0080.00816.44
7.3.240.0140.00716.60
7.3.230.0100.00716.39
7.3.210.0160.00016.16
7.3.200.0080.00819.39
7.3.190.0100.00716.33
7.3.180.0100.01016.23
7.3.170.0140.00416.28
7.3.160.0170.00316.16
7.2.330.0170.00016.68
7.2.320.0070.01116.73
7.2.310.0100.00716.65
7.2.300.0080.01316.67
7.2.290.0040.01416.77
7.2.110.0230.00716.39
7.2.00.0040.01119.50
7.1.100.0070.00418.37
7.1.70.0030.01016.80
7.1.60.0090.01519.32
7.1.50.0110.01116.92
7.1.00.0000.08022.32
7.0.200.0070.00016.35
7.0.140.0070.07021.97
7.0.60.0130.07319.91
7.0.50.0070.03317.97
7.0.40.0030.07020.40
7.0.30.0300.07720.24
7.0.20.0270.05720.11
7.0.10.0070.08720.12
7.0.00.0100.05720.24
5.6.280.0070.07021.07
5.6.210.0030.08020.50
5.6.200.0130.06718.29
5.6.190.0030.07020.64
5.6.180.0600.07020.61
5.6.170.0200.04720.58
5.6.160.0030.05720.50
5.6.150.0100.07718.21
5.6.140.0070.08318.27
5.6.130.0130.04718.11
5.6.120.0030.04020.82
5.6.110.0100.07320.98
5.6.100.0070.04021.00
5.6.90.0100.07721.10
5.6.80.0030.09020.39
5.5.350.0200.07020.43
5.5.340.0030.08718.02
5.5.330.0070.08320.27
5.5.320.0330.07320.27
5.5.310.0200.05720.34
5.5.300.0070.05017.95
5.5.290.0170.05717.91
5.5.280.0070.07320.65
5.5.270.0170.06020.85
5.5.260.0070.06020.79
5.5.250.0100.08020.59
5.5.240.0170.06720.26
5.4.450.0300.07319.34
5.4.440.0630.06019.61
5.4.430.0930.06019.64
5.4.420.1070.05019.46
5.4.410.0800.05719.50
5.4.400.1000.04319.31
5.4.390.0970.06019.15
5.4.380.0200.06018.59
5.4.370.0470.05718.76
5.4.360.0400.05018.75
5.4.350.0330.05018.81
5.4.340.0400.04318.66
5.4.320.0070.03712.50
5.4.310.0060.03912.50
5.4.300.0060.04112.50
5.4.290.0040.04012.50
5.4.280.0110.03112.39
5.4.270.0030.03912.40
5.4.260.0030.03912.40
5.4.250.0050.03712.39
5.4.240.0090.03212.39
5.4.230.0070.03612.38
5.4.220.0050.03512.39
5.4.210.0050.03612.39
5.4.200.0050.04212.39
5.4.190.0090.03612.38
5.4.180.0050.04612.39
5.4.170.0050.03612.39
5.4.160.0060.03512.39
5.4.150.0080.03812.39
5.4.140.0070.03512.07
5.4.130.0060.03512.06
5.4.120.0070.03312.02
5.4.110.0050.03612.01
5.4.100.0030.03712.01
5.4.90.0050.03712.01
5.4.80.0070.04212.02
5.4.70.0030.03712.01
5.4.60.0050.03712.01
5.4.50.0060.04012.01
5.4.40.0060.03412.00
5.4.30.0030.03812.00
5.4.20.0080.03212.00
5.4.10.0050.03511.99
5.4.00.0020.03911.48
5.3.290.0050.04012.80
5.3.280.0070.03712.71
5.3.270.0110.03412.73
5.3.260.0100.03512.72
5.3.250.0050.03912.72
5.3.240.0070.03812.71
5.3.230.0080.04112.71
5.3.220.0050.03912.68
5.3.210.0100.03512.68
5.3.200.0040.03712.68
5.3.190.0060.03612.68
5.3.180.0050.03612.67
5.3.170.0070.03412.67
5.3.160.0100.03512.67
5.3.150.0050.03612.68
5.3.140.0070.03912.66
5.3.130.0080.03912.66
5.3.120.0040.04012.66
5.3.110.0020.04212.66
5.3.100.0050.03812.12
5.3.90.0050.03712.11
5.3.80.0080.03312.10
5.3.70.0050.03612.10
5.3.60.0070.03512.08
5.3.50.0060.04212.03
5.3.40.0060.03712.03
5.3.30.0060.03411.98
5.3.20.0040.03511.78
5.3.10.0040.03611.73
5.3.00.0050.03611.72
5.2.170.0060.0289.23
5.2.160.0050.0289.23
5.2.150.0040.0319.22
5.2.140.0070.0289.22
5.2.130.0030.0359.18
5.2.120.0040.0279.18
5.2.110.0060.0319.19
5.2.100.0020.0319.18
5.2.90.0050.0289.18
5.2.80.0030.0339.18
5.2.70.0040.0309.18
5.2.60.0060.0319.13
5.2.50.0070.0269.10
5.2.40.0060.0279.08
5.2.30.0040.0319.05
5.2.20.0040.0299.04
5.2.10.0050.0288.95
5.2.00.0030.0318.81
5.1.60.0030.0258.09
5.1.50.0050.0248.09
5.1.40.0050.0298.07
5.1.30.0040.0278.41
5.1.20.0000.0318.44
5.1.10.0050.0258.17
5.1.00.0030.0278.17
5.0.50.0020.0226.64
5.0.40.0020.0216.50
5.0.30.0020.0336.31
5.0.20.0050.0186.28
5.0.10.0030.0216.25
5.0.00.0030.0316.25
4.4.90.0030.0154.78
4.4.80.0020.0214.75
4.4.70.0020.0164.75
4.4.60.0050.0134.75
4.4.50.0010.0174.77
4.4.40.0020.0264.71
4.4.30.0030.0154.76
4.4.20.0040.0154.84
4.4.10.0030.0234.85
4.4.00.0050.0304.76
4.3.110.0010.0214.67
4.3.100.0010.0174.67
4.3.90.0030.0144.64
4.3.80.0020.0254.59
4.3.70.0040.0134.63
4.3.60.0030.0154.63
4.3.50.0030.0164.63
4.3.40.0050.0264.54
4.3.30.0030.0153.29
4.3.20.0020.0173.26
4.3.10.0030.0203.22
4.3.00.0070.0206.78

preferences:
43.41 ms | 400 KiB | 5 Q