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 self::C; } } class B extends A implements I { const D = 15; } var_dump(B::test(array()), A::A, 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.0090.00618.41
8.3.50.0080.01022.00
8.3.40.0070.00718.93
8.3.30.0070.00719.22
8.3.20.0050.00220.34
8.3.10.0030.00520.66
8.3.00.0040.00419.81
8.2.180.0030.01018.29
8.2.170.0000.01422.96
8.2.160.0070.00720.53
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0000.00722.24
8.2.110.0040.00422.25
8.2.100.0030.00917.66
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00418.19
8.2.30.0040.00419.16
8.2.20.0040.00417.68
8.2.10.0080.00018.06
8.2.00.0040.00417.73
8.1.280.0100.00725.92
8.1.270.0080.00023.79
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.97
8.1.230.0060.00619.07
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0080.00217.22
8.1.190.0000.00817.11
8.1.180.0040.00418.10
8.1.170.0030.00618.70
8.1.160.0000.00721.98
8.1.150.0040.00418.83
8.1.140.0030.00617.31
8.1.130.0000.00717.77
8.1.120.0000.00717.45
8.1.110.0050.00217.41
8.1.100.0000.00817.40
8.1.90.0080.00017.34
8.1.80.0030.00417.42
8.1.70.0000.00717.37
8.1.60.0090.00017.56
8.1.50.0030.00517.32
8.1.40.0060.00317.34
8.1.30.0040.00417.46
8.1.20.0030.00517.52
8.1.10.0000.00717.57
8.1.00.0030.00617.31
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0040.00418.51
8.0.270.0000.00717.18
8.0.260.0070.00017.27
8.0.250.0030.00316.93
8.0.240.0040.00417.00
8.0.230.0030.00317.00
8.0.220.0000.00716.92
8.0.210.0000.00716.89
8.0.200.0040.00417.04
8.0.190.0000.00716.99
8.0.180.0040.00416.96
8.0.170.0080.00016.91
8.0.160.0000.00817.01
8.0.150.0030.00516.80
8.0.140.0040.00416.93
8.0.130.0050.00013.45
8.0.120.0040.00416.91
8.0.110.0040.00416.95
8.0.100.0030.00516.87
8.0.90.0050.00216.80
8.0.80.0150.00716.96
8.0.70.0050.00216.95
8.0.60.0000.00716.95
8.0.50.0080.00016.80
8.0.30.0090.00916.91
8.0.20.0080.01117.40
8.0.10.0000.00716.81
8.0.00.0100.00916.84
7.4.330.0000.00615.02
7.4.320.0000.00616.41
7.4.300.0000.00616.34
7.4.290.0030.00316.55
7.4.280.0000.00716.36
7.4.270.0040.00416.55
7.4.260.0040.00416.45
7.4.250.0000.00716.48
7.4.240.0060.00116.51
7.4.230.0030.00316.26
7.4.220.0070.01016.50
7.4.210.0070.00716.66
7.4.200.0040.00416.54
7.4.160.0080.01016.59
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0080.01016.44
7.4.120.0070.01216.55
7.4.110.0140.00316.64
7.4.100.0130.00316.66
7.4.90.0030.01516.52
7.4.80.0130.00716.59
7.4.70.0130.01016.66
7.4.60.0040.01216.59
7.4.50.0000.00716.67
7.4.40.0070.01016.36
7.4.30.0040.01116.46
7.4.00.0070.01115.03
7.3.330.0070.00013.38
7.3.320.0030.00313.24
7.3.310.0050.00216.27
7.3.300.0040.00416.35
7.3.290.0060.00916.39
7.3.280.0110.00416.41
7.3.270.0150.00317.40
7.3.260.0130.00616.52
7.3.250.0140.01216.43
7.3.240.0120.01216.57
7.3.230.0060.00916.50
7.3.210.0130.00616.41
7.3.200.0180.00319.39
7.3.190.0130.00316.41
7.3.180.0080.01416.50
7.3.170.0100.00716.55
7.3.160.0070.01316.45
7.3.120.0130.00314.62
7.3.110.0030.01714.73
7.3.100.0060.00614.68
7.3.90.0120.00315.07
7.3.80.0090.00614.96
7.3.70.0040.00714.74
7.3.60.0070.01114.70
7.3.50.0060.00614.48
7.3.40.0070.01014.91
7.3.30.0070.00714.89
7.3.20.0130.00316.77
7.3.10.0090.00616.59
7.3.00.0070.01016.27
7.2.330.0130.00316.43
7.2.320.0120.00616.61
7.2.310.0070.01716.30
7.2.300.0050.01116.47
7.2.290.0070.01616.47
7.2.250.0130.00514.78
7.2.240.0110.01115.11
7.2.230.0080.00814.67
7.2.220.0060.00614.98
7.2.210.0070.01014.91
7.2.200.0100.00714.91
7.2.190.0100.00614.89
7.2.180.0000.01715.01
7.2.170.0030.01014.84
7.2.80.0070.00416.58
7.2.60.0070.00716.91
7.2.00.0030.01019.05
7.1.330.0030.01415.74
7.1.320.0040.00715.71
7.1.310.0000.01415.62
7.1.300.0040.00715.54
7.1.290.0090.00615.64
7.1.280.0070.00715.23
7.1.270.0040.01115.61
7.1.260.0000.01715.61
7.1.200.0090.00615.80
7.1.100.0040.00818.12
7.1.70.0030.00616.76
7.1.60.0030.02019.32
7.1.50.0000.02016.93
7.1.00.0100.07022.51
7.0.200.0030.00616.57
7.0.140.0130.06322.01
7.0.60.0070.04020.02
7.0.50.0030.07317.84
7.0.40.0070.05319.96
7.0.30.0330.08320.08
7.0.20.0270.06720.24
7.0.10.0400.07020.22
7.0.00.0100.08020.19
5.6.280.0070.07021.12
5.6.210.0100.08720.67
5.6.200.0200.07018.25
5.6.190.0130.06320.45
5.6.180.0200.04020.60
5.6.170.0230.07720.50
5.6.160.0130.07020.51
5.6.150.0000.05318.19
5.6.140.0070.08018.21
5.6.130.0130.07718.11
5.6.120.0070.08021.00
5.6.110.0030.08321.11
5.6.100.0130.04021.00
5.6.90.0100.05020.95
5.6.80.0130.07020.36
5.6.70.3730.03020.52
5.5.350.0130.08320.48
5.5.340.0070.03718.05
5.5.330.0100.08720.32
5.5.320.0270.04320.31
5.5.310.0300.03720.27
5.5.300.0170.03018.01
5.5.290.0200.04018.08
5.5.280.0030.04020.85
5.5.270.0000.06320.79
5.5.260.0130.06320.79
5.5.250.0100.07720.78
5.5.240.0300.07020.26
5.4.450.0370.06019.61
5.4.440.0930.05719.47
5.4.430.0900.06019.47
5.4.420.0970.04719.57
5.4.410.0100.07319.35
5.4.400.0800.05719.06
5.4.390.0770.07318.88
5.4.380.0270.05318.63
5.4.370.0400.05718.51
5.4.360.0430.07018.61
5.4.350.0300.06018.56
5.4.340.0400.04718.79
5.4.320.0050.04412.50
5.4.310.0040.03912.50
5.4.300.0020.04012.50
5.4.290.0070.03712.50
5.4.280.0060.03512.39
5.4.270.0040.03812.39
5.4.260.0070.03512.39
5.4.250.0080.03812.39
5.4.240.0040.03912.40
5.4.230.0070.03612.39
5.4.220.0070.03412.38
5.4.210.0060.03512.39
5.4.200.0050.03812.39
5.4.190.0070.03512.38
5.4.180.0100.03212.39
5.4.170.0030.04012.39
5.4.160.0040.03812.39
5.4.150.0090.03412.39
5.4.140.0120.03812.07
5.4.130.0090.03312.06
5.4.120.0060.05012.02
5.4.110.0090.04812.01
5.4.100.0050.04612.01
5.4.90.0080.03512.02
5.4.80.0060.03712.01
5.4.70.0060.03612.01
5.4.60.0100.03112.01
5.4.50.0070.03412.01
5.4.40.0090.03912.00
5.4.30.0070.03511.99
5.4.20.0070.03411.99
5.4.10.0060.04912.00
5.4.00.0080.03711.49
5.3.290.0050.04012.80
5.3.280.0050.04712.71
5.3.270.0120.03712.73
5.3.260.0090.05112.72
5.3.250.0110.03212.72
5.3.240.0070.03612.72
5.3.230.0080.03512.71
5.3.220.0070.04212.68
5.3.210.0090.03612.68
5.3.200.0070.03712.68
5.3.190.0040.04012.68
5.3.180.0080.03712.68
5.3.170.0060.03712.67
5.3.160.0080.03812.68
5.3.150.0090.03512.68
5.3.140.0080.03312.66
5.3.130.0050.03812.65
5.3.120.0060.03812.66
5.3.110.0060.04112.66
5.3.100.0090.03812.12
5.3.90.0050.03612.11
5.3.80.0080.03412.10
5.3.70.0050.03712.10
5.3.60.0070.03412.08
5.3.50.0100.04412.04
5.3.40.0090.03412.03
5.3.30.0050.03411.98
5.3.20.0040.03611.77
5.3.10.0050.03511.73
5.3.00.0080.03411.72
5.2.170.0060.0369.23
5.2.160.0050.0309.22
5.2.150.0070.0289.22
5.2.140.0060.0299.22
5.2.130.0040.0399.18
5.2.120.0070.0269.18
5.2.110.0030.0309.19
5.2.100.0070.0269.19
5.2.90.0050.0299.19
5.2.80.0050.0319.18
5.2.70.0060.0299.18
5.2.60.0080.0269.13
5.2.50.0040.0319.10
5.2.40.0030.0309.08
5.2.30.0070.0309.05
5.2.20.0060.0289.04
5.2.10.0060.0258.95
5.2.00.0070.0338.81
5.1.60.0040.0248.09
5.1.50.0060.0278.09
5.1.40.0050.0238.07
5.1.30.0010.0298.42
5.1.20.0040.0268.45
5.1.10.0040.0258.17
5.1.00.0070.0258.17
5.0.50.0030.0206.64
5.0.40.0040.0196.50
5.0.30.0020.0356.31
5.0.20.0050.0186.28
5.0.10.0060.0176.26
5.0.00.0040.0296.25
4.4.90.0040.0154.78
4.4.80.0050.0144.75
4.4.70.0020.0164.76
4.4.60.0030.0154.75
4.4.50.0040.0134.77
4.4.40.0040.0234.71
4.4.30.0020.0164.76
4.4.20.0050.0134.85
4.4.10.0010.0174.84
4.4.00.0030.0264.76
4.3.110.0040.0144.67
4.3.100.0030.0144.67
4.3.90.0040.0184.63
4.3.80.0040.0314.59
4.3.70.0030.0164.63
4.3.60.0060.0144.63
4.3.50.0040.0174.63
4.3.40.0040.0254.54
4.3.30.0030.0193.28
4.3.20.0000.0233.26
4.3.10.0040.0193.22
4.3.00.0070.0276.78

preferences:
43.14 ms | 401 KiB | 5 Q