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; } class B extends A implements I { const D = 15; public static function test(array $a){ return self::C; } } 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.0060.01218.43
8.3.50.0090.00722.04
8.3.40.0140.00718.67
8.3.30.0100.00719.01
8.3.20.0070.00020.16
8.3.10.0040.00420.40
8.3.00.0060.00319.56
8.2.180.0040.01116.38
8.2.170.0140.00022.96
8.2.160.0000.01420.43
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00422.05
8.2.110.0080.00022.25
8.2.100.0000.01217.78
8.2.90.0070.00019.08
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0030.00618.19
8.2.30.0070.00019.18
8.2.20.0000.00817.53
8.2.10.0040.00418.06
8.2.00.0000.00717.58
8.1.280.0090.00625.92
8.1.270.0080.00023.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0120.00018.97
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00617.22
8.1.190.0060.00317.10
8.1.180.0000.00918.10
8.1.170.0040.00418.50
8.1.160.0000.00721.91
8.1.150.0040.00418.84
8.1.140.0000.00917.38
8.1.130.0030.00317.77
8.1.120.0040.00417.48
8.1.110.0050.00317.40
8.1.100.0070.00017.42
8.1.90.0040.00417.40
8.1.80.0000.00817.32
8.1.70.0030.00317.27
8.1.60.0000.01017.38
8.1.50.0000.00817.36
8.1.40.0000.00817.36
8.1.30.0000.00817.40
8.1.20.0040.00417.60
8.1.10.0060.00317.45
8.1.00.0060.00317.28
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.36
8.0.270.0000.00717.22
8.0.260.0000.00617.20
8.0.250.0000.00716.88
8.0.240.0030.00316.92
8.0.230.0000.00716.84
8.0.220.0000.00716.78
8.0.210.0060.00016.74
8.0.200.0040.00416.96
8.0.190.0040.00416.88
8.0.180.0070.00016.81
8.0.170.0030.00516.94
8.0.160.0040.00416.78
8.0.150.0070.00016.71
8.0.140.0000.00716.79
8.0.130.0050.00013.27
8.0.120.0040.00416.82
8.0.110.0000.00716.83
8.0.100.0040.00416.73
8.0.90.0040.00416.67
8.0.80.0000.01716.77
8.0.70.0040.00416.65
8.0.60.0050.00216.73
8.0.50.0040.00416.73
8.0.30.0110.00817.13
8.0.20.0090.01117.40
8.0.10.0000.00716.84
8.0.00.0100.01116.81
7.4.330.0020.00215.06
7.4.320.0060.00016.59
7.4.300.0060.00016.39
7.4.290.0000.00716.55
7.4.280.0040.00416.44
7.4.270.0030.00316.44
7.4.260.0000.00816.50
7.4.250.0040.00416.43
7.4.240.0040.00416.41
7.4.230.0000.00716.25
7.4.220.0070.01816.64
7.4.210.0030.01016.50
7.4.200.0030.00316.56
7.4.160.0030.01216.36
7.4.150.0100.01017.40
7.4.140.0150.00717.86
7.4.130.0110.00616.48
7.4.120.0110.00916.56
7.4.110.0090.00916.45
7.4.100.0130.00416.59
7.4.90.0130.00316.34
7.4.80.0130.00316.55
7.4.70.0130.00316.31
7.4.60.0030.01316.35
7.4.50.0060.00316.28
7.4.40.0090.00616.42
7.4.30.0050.01016.47
7.4.00.0060.00914.86
7.3.330.0030.00313.18
7.3.320.0000.00513.34
7.3.310.0070.00016.41
7.3.300.0070.00016.32
7.3.290.0140.00016.27
7.3.280.0070.01016.30
7.3.270.0180.00417.40
7.3.260.0150.00916.55
7.3.250.0200.01216.44
7.3.240.0110.00816.26
7.3.230.0090.00616.39
7.3.210.0030.01316.23
7.3.200.0150.00819.39
7.3.190.0000.01716.46
7.3.180.0120.00916.36
7.3.170.0150.00616.59
7.3.160.0070.01016.61
7.2.330.0090.00916.80
7.2.320.0100.01016.76
7.2.310.0060.01316.55
7.2.300.0180.00316.41
7.2.290.0060.00916.63
7.2.60.0120.00016.55
7.2.00.0060.00619.13
7.1.200.0030.00315.79
7.1.100.0780.01016.04
7.1.70.0050.00517.16
7.1.60.0100.01619.32
7.1.50.0250.01716.38
7.1.00.0070.07022.30
7.0.200.0000.00716.50
7.0.140.0100.06721.97
7.0.60.0000.04320.01
7.0.50.0070.07717.85
7.0.40.0070.08319.98
7.0.30.0170.04320.26
7.0.20.0170.04320.12
7.0.10.0030.04320.24
7.0.00.0100.05320.16
5.6.280.0100.06721.11
5.6.210.0070.04320.70
5.6.200.0070.06318.29
5.6.190.0100.05020.55
5.6.180.0470.07320.39
5.6.170.0470.04320.48
5.6.160.0070.06020.46
5.6.150.0070.06318.29
5.6.140.0100.04018.17
5.6.130.0100.08018.17
5.6.120.0000.06720.84
5.6.110.0030.08320.99
5.6.100.0100.08320.98
5.6.90.0030.04321.10
5.6.80.0270.06020.48
5.5.350.0130.08020.45
5.5.340.0070.08318.09
5.5.330.0030.05320.38
5.5.320.0270.04020.36
5.5.310.0230.04320.34
5.5.300.0130.06018.04
5.5.290.0130.05017.94
5.5.280.0100.08020.77
5.5.270.0200.06720.83
5.5.260.0070.07320.88
5.5.250.0100.03720.71
5.5.240.0230.07020.29
5.4.450.0300.06719.61
5.4.440.0830.05019.34
5.4.430.0170.05019.47
5.4.420.0800.05019.57
5.4.410.0800.05719.35
5.4.400.0830.05019.03
5.4.390.1030.07719.14
5.4.380.0300.05718.64
5.4.370.0230.05718.47
5.4.360.0300.05718.48
5.4.350.0400.05018.63
5.4.340.0430.03718.54
5.4.320.0050.03712.50
5.4.310.0070.03612.50
5.4.300.0140.04112.51
5.4.290.0080.04212.50
5.4.280.0090.03312.39
5.4.270.0040.04512.39
5.4.260.0090.04612.40
5.4.250.0060.03712.39
5.4.240.0050.04412.39
5.4.230.0070.03612.39
5.4.220.0070.03512.39
5.4.210.0060.03612.39
5.4.200.0070.03612.38
5.4.190.0090.03312.38
5.4.180.0140.04412.38
5.4.170.0060.03512.39
5.4.160.0070.03512.39
5.4.150.0060.03612.39
5.4.140.0040.03912.07
5.4.130.0070.03712.05
5.4.120.0080.03212.02
5.4.110.0060.03512.01
5.4.100.0090.03412.01
5.4.90.0090.03512.02
5.4.80.0070.03812.01
5.4.70.0090.03112.01
5.4.60.0070.03412.01
5.4.50.0080.03312.01
5.4.40.0070.03412.00
5.4.30.0090.03211.99
5.4.20.0060.03512.00
5.4.10.0050.03412.00
5.4.00.0070.03511.48
5.3.290.0060.03912.80
5.3.280.0040.03912.70
5.3.270.0100.03412.72
5.3.260.0060.03812.72
5.3.250.0050.03812.72
5.3.240.0070.03612.72
5.3.230.0050.03912.71
5.3.220.0070.03612.68
5.3.210.0050.03912.68
5.3.200.0080.03612.68
5.3.190.0110.04712.68
5.3.180.0090.04412.67
5.3.170.0040.03812.67
5.3.160.0050.04212.68
5.3.150.0050.03812.67
5.3.140.0070.03612.66
5.3.130.0100.03412.66
5.3.120.0060.03712.66
5.3.110.0030.04012.66
5.3.100.0080.04112.13
5.3.90.0040.03812.11
5.3.80.0070.04012.09
5.3.70.0070.03512.09
5.3.60.0130.03612.08
5.3.50.0080.03512.03
5.3.40.0050.03712.03
5.3.30.0050.03411.98
5.3.20.0050.03811.77
5.3.10.0050.03411.73
5.3.00.0060.04311.72
5.2.170.0030.0379.23
5.2.160.0050.0299.22
5.2.150.0040.0329.22
5.2.140.0040.0309.22
5.2.130.0030.0309.18
5.2.120.0060.0329.18
5.2.110.0040.0299.19
5.2.100.0050.0279.18
5.2.90.0060.0319.19
5.2.80.0020.0349.18
5.2.70.0050.0369.18
5.2.60.0080.0289.13
5.2.50.0060.0369.10
5.2.40.0060.0279.08
5.2.30.0030.0329.05
5.2.20.0080.0259.04
5.2.10.0080.0318.95
5.2.00.0070.0308.81
5.1.60.0040.0258.09
5.1.50.0040.0248.09
5.1.40.0050.0308.07
5.1.30.0060.0308.42
5.1.20.0050.0298.45
5.1.10.0030.0258.17
5.1.00.0060.0238.16
5.0.50.0030.0236.64
5.0.40.0050.0246.50
5.0.30.0040.0326.31
5.0.20.0070.0176.28
5.0.10.0040.0196.25
5.0.00.0050.0296.25
4.4.90.0020.0154.78
4.4.80.0020.0204.75
4.4.70.0020.0174.75
4.4.60.0030.0154.75
4.4.50.0050.0144.77
4.4.40.0040.0234.71
4.4.30.0060.0144.75
4.4.20.0040.0144.84
4.4.10.0020.0174.85
4.4.00.0030.0244.76
4.3.110.0070.0194.66
4.3.100.0010.0164.66
4.3.90.0000.0174.64
4.3.80.0040.0274.59
4.3.70.0070.0184.63
4.3.60.0020.0184.63
4.3.50.0010.0184.63
4.3.40.0030.0244.54
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0000.0183.22
4.3.00.0130.0106.78

preferences:
46.3 ms | 401 KiB | 5 Q