3v4l.org

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

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.0100.00718.56
8.3.50.0110.00622.06
8.3.40.0140.00018.75
8.3.30.0150.00618.78
8.3.20.0050.00220.18
8.3.10.0000.00820.20
8.3.00.0090.00019.31
8.2.180.0150.00016.50
8.2.170.0090.00622.96
8.2.160.0000.01320.36
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00422.09
8.2.110.0000.00822.25
8.2.100.0080.00417.78
8.2.90.0040.00419.16
8.2.80.0030.00517.97
8.2.70.0080.00017.50
8.2.60.0050.00218.04
8.2.50.0030.00618.07
8.2.40.0080.00018.06
8.2.30.0000.00719.25
8.2.20.0000.00717.52
8.2.10.0040.00418.05
8.2.00.0040.00417.59
8.1.280.0070.00725.92
8.1.270.0000.00823.76
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00323.79
8.1.230.0080.00318.98
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0100.00017.23
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0050.00318.47
8.1.160.0000.00822.03
8.1.150.0040.00418.93
8.1.140.0040.00417.39
8.1.130.0030.00317.75
8.1.120.0040.00417.31
8.1.110.0000.00717.44
8.1.100.0040.00417.38
8.1.90.0040.00417.23
8.1.80.0030.00317.36
8.1.70.0000.00717.34
8.1.60.0080.00017.50
8.1.50.0060.00317.47
8.1.40.0000.00717.41
8.1.30.0080.00017.54
8.1.20.0000.00817.55
8.1.10.0040.00417.39
8.1.00.0000.00717.28
8.0.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0030.00318.49
8.0.270.0030.00317.17
8.0.260.0060.00017.26
8.0.250.0030.00316.89
8.0.240.0040.00416.91
8.0.230.0050.00316.91
8.0.220.0070.00016.92
8.0.210.0020.00516.88
8.0.200.0070.00016.96
8.0.190.0030.00516.96
8.0.180.0050.00216.88
8.0.170.0000.00716.95
8.0.160.0000.00716.91
8.0.150.0030.00316.65
8.0.140.0000.00716.79
8.0.130.0030.00313.22
8.0.120.0000.00816.77
8.0.110.0040.00416.73
8.0.100.0030.00516.66
8.0.90.0000.00716.81
8.0.80.0140.00716.82
8.0.70.0070.00016.68
8.0.60.0080.00016.77
8.0.50.0000.00816.82
8.0.30.0110.01017.13
8.0.20.0100.01117.40
8.0.10.0070.00016.82
8.0.00.0090.01216.52
7.4.330.0000.00615.00
7.4.320.0000.00616.51
7.4.300.0030.00316.43
7.4.290.0040.00416.59
7.4.280.0040.00416.41
7.4.270.0000.00716.53
7.4.260.0030.00316.42
7.4.250.0040.00416.30
7.4.240.0020.00516.39
7.4.230.0040.00416.58
7.4.220.0070.01816.47
7.4.210.0030.01416.41
7.4.200.0070.00016.47
7.4.160.0130.01016.32
7.4.150.0030.01517.40
7.4.140.0170.02017.86
7.4.130.0060.01316.43
7.4.120.0080.00916.45
7.4.110.0040.01916.46
7.4.100.0090.00916.50
7.4.90.0120.00916.52
7.4.80.0080.01116.52
7.4.70.0100.00616.41
7.4.60.0070.01016.39
7.4.50.0040.00016.13
7.4.40.0100.00716.41
7.4.30.0090.00616.40
7.4.00.0060.00815.18
7.3.330.0050.00313.22
7.3.320.0060.00013.29
7.3.310.0000.00716.32
7.3.300.0040.00416.22
7.3.290.0140.00016.28
7.3.280.0080.01116.31
7.3.270.0090.00917.40
7.3.260.0120.00616.64
7.3.250.0060.01516.25
7.3.240.0120.00616.29
7.3.230.0110.00516.39
7.3.210.0090.00816.26
7.3.200.0070.01019.39
7.3.190.0030.01416.32
7.3.180.0040.01916.45
7.3.170.0060.01116.46
7.3.160.0090.00616.43
7.3.120.0110.00714.85
7.3.110.0060.00915.07
7.3.100.0140.00414.75
7.3.90.0100.00714.51
7.3.80.0100.00614.63
7.3.70.0080.00014.76
7.3.60.0060.00914.82
7.3.50.0090.00614.96
7.3.40.0000.01114.81
7.3.30.0030.01014.38
7.3.20.0040.00816.75
7.3.10.0080.00816.68
7.3.00.0000.01216.42
7.2.330.0110.00616.73
7.2.320.0030.01516.78
7.2.310.0030.01316.62
7.2.300.0080.00816.71
7.2.290.0100.00716.53
7.2.250.0070.00714.89
7.2.240.0060.01314.93
7.2.230.0030.01014.66
7.2.220.0000.01214.85
7.2.210.0070.00314.89
7.2.200.0030.01014.98
7.2.190.0060.01014.81
7.2.180.0030.00915.05
7.2.170.0090.00314.93
7.2.160.0040.00815.00
7.2.150.0070.00716.64
7.2.140.0060.00316.77
7.2.130.0070.00416.53
7.2.120.0140.00816.68
7.2.110.0190.00516.76
7.2.100.0190.00316.58
7.2.90.0180.00716.82
7.2.80.0120.00716.55
7.2.70.0120.00516.76
7.2.60.0100.00816.65
7.2.50.0100.00916.90
7.2.40.0150.00516.89
7.2.30.0170.00516.90
7.2.20.0150.00516.85
7.2.10.0120.01016.93
7.2.00.0090.01017.72
7.1.330.0030.01315.48
7.1.320.0030.00915.88
7.1.310.0030.00715.75
7.1.300.0150.00015.48
7.1.290.0090.00315.71
7.1.280.0040.00415.80
7.1.270.0000.01215.70
7.1.260.0050.00515.70
7.1.250.0080.00015.82
7.1.240.0110.00715.71
7.1.230.0100.00715.73
7.1.220.0130.00415.57
7.1.210.0180.00315.46
7.1.200.0070.01115.62
7.1.190.0130.00515.60
7.1.180.0150.00515.68
7.1.170.0130.00515.43
7.1.160.0100.00815.71
7.1.150.0140.00415.60
7.1.140.0110.00715.51
7.1.130.0120.00615.71
7.1.120.0160.00615.72
7.1.110.0180.00315.69
7.1.100.0100.00716.46
7.1.90.0110.00515.82
7.1.80.0140.00215.67
7.1.70.0130.00716.09
7.1.60.0130.01116.95
7.1.50.0130.01121.91
7.1.40.0150.00915.60
7.1.30.0160.01015.55
7.1.20.0140.00815.57
7.1.10.0080.00815.57
7.1.00.0160.02917.83
7.0.330.0090.00615.43
7.0.320.0090.00715.41
7.0.310.0130.00915.18
7.0.300.0110.00415.25
7.0.290.0120.00815.30
7.0.280.0100.00615.37
7.0.270.0170.00315.42
7.0.260.0070.00715.23
7.0.250.0120.00415.47
7.0.240.0090.00415.43
7.0.230.0360.00415.47
7.0.220.0200.00815.22
7.0.210.0120.00815.26
7.0.200.0110.00615.77
7.0.190.0220.00415.39
7.0.180.0180.00415.31
7.0.170.0130.00415.40
7.0.160.0120.01015.40
7.0.150.0070.01015.40
7.0.140.0100.02817.56
7.0.130.0130.00715.41
7.0.120.0250.00915.23
7.0.110.0130.00815.28
7.0.100.0130.00815.21
7.0.90.0190.00615.25
7.0.80.0160.00715.29
7.0.70.0170.00315.29
7.0.60.0140.03116.90
7.0.50.0140.01516.15
7.0.40.0100.02415.73
7.0.30.0240.02415.69
7.0.20.0110.03215.72
7.0.10.0070.02115.62
7.0.00.0090.03015.71
5.6.400.0030.00914.19
5.6.390.0040.01114.23
5.6.380.0150.00214.36
5.6.370.0080.00514.26
5.6.360.0090.00314.32
5.6.350.0090.00614.28
5.6.340.0060.01014.24
5.6.330.0070.00814.18
5.6.320.0080.01114.02
5.6.310.0060.00714.01
5.6.300.0080.00813.96
5.6.290.0120.00214.14
5.6.280.0080.02916.56
5.6.270.0050.00714.29
5.6.260.0050.00914.24
5.6.250.0040.00914.19
5.6.240.0080.00614.25
5.6.230.0090.00614.14
5.6.220.0090.00414.29
5.6.210.0070.03216.29
5.6.200.0030.02515.55
5.6.190.0080.02116.22
5.6.180.0180.03116.26
5.6.170.0120.02116.31
5.6.160.0090.01516.35
5.6.150.0060.02315.58
5.6.140.0060.02515.59
5.6.130.0050.03315.72
5.6.120.0100.02016.50
5.6.110.0100.02416.58
5.6.100.0080.01516.51
5.6.90.0080.02816.48
5.6.80.0060.02416.37
5.6.70.0090.00414.12
5.6.60.0060.01014.09
5.6.50.0040.00613.98
5.6.40.0060.00714.24
5.6.30.0060.00913.95
5.6.20.0050.00814.20
5.6.10.0040.00814.15
5.6.00.0100.00814.21
5.5.380.0040.00712.83
5.5.370.0080.00512.84
5.5.360.0090.00412.94
5.5.350.0110.03315.36
5.5.340.0060.03114.63
5.5.330.0080.02615.40
5.5.320.0190.02515.28
5.5.310.0140.03015.35
5.5.300.0100.02514.56
5.5.290.0080.02014.56
5.5.280.0050.03415.61
5.5.270.0070.03115.55
5.5.260.0100.03115.37
5.5.250.0090.03215.45
5.5.240.0050.02215.30
5.5.230.0070.00512.85
5.5.220.0050.00912.80
5.5.210.0080.00612.83
5.5.200.0070.00612.62
5.5.190.0040.00912.89
5.5.180.0050.00412.66
5.5.170.0070.00714.03
5.5.160.0070.00712.87
5.5.150.0070.00312.82
5.5.140.0040.00612.63
5.5.130.0000.01212.76
5.5.120.0050.01012.75
5.5.110.0060.00612.84
5.5.100.0050.00712.78
5.5.90.0050.00612.92
5.5.80.0070.00712.93
5.5.70.0060.00912.78
5.5.60.0100.00212.83
5.5.50.0070.00412.89
5.5.40.0060.00812.90
5.5.30.0080.00712.80
5.5.20.0060.00612.89
5.5.10.0090.00112.91
5.5.00.0100.00412.84
5.4.450.0020.02914.86
5.4.440.0350.02114.90
5.4.430.0080.02414.91
5.4.420.0080.02514.88
5.4.410.0380.02114.88
5.4.400.0360.02114.81
5.4.390.0360.01814.82
5.4.380.0180.02314.65
5.4.370.0170.01914.54
5.4.360.0120.02414.55
5.4.350.0130.02314.59
5.4.340.0120.02414.64
5.4.330.0070.00412.57
5.4.320.0060.01712.54
5.4.310.0050.01612.54
5.4.300.0050.01612.54
5.4.290.0050.01612.54
5.4.280.0070.01312.51
5.4.270.0080.01312.51
5.4.260.0070.01512.51
5.4.250.0070.01512.51
5.4.240.0060.01712.51
5.4.230.0070.01712.51
5.4.220.0050.01712.51
5.4.210.0080.01412.51
5.4.200.0050.01712.51
5.4.190.0060.01612.51
5.4.180.0060.01512.51
5.4.170.0050.01512.51
5.4.160.0060.02112.51
5.4.150.0040.02012.51
5.4.140.0060.01512.40
5.4.130.0060.01312.40
5.4.120.0060.01412.38
5.4.110.0050.01612.38
5.4.100.0030.01812.38
5.4.90.0060.01812.38
5.4.80.0070.01212.38
5.4.70.0070.01412.38
5.4.60.0090.01312.38
5.4.50.0020.01712.38
5.4.40.0090.01312.38
5.4.30.0060.01412.38
5.4.20.0030.01712.38
5.4.10.0040.01612.38
5.4.00.0050.01512.21
5.3.290.0090.02012.19
5.3.280.0060.02112.15
5.3.270.0080.02012.15
5.3.260.0100.02912.15
5.3.250.0090.02212.15
5.3.240.0090.01812.15
5.3.230.0060.02212.14
5.3.220.0070.02012.13
5.3.210.0080.02112.13
5.3.200.0050.02112.13
5.3.190.0020.02412.13
5.3.180.0110.01612.13
5.3.170.0080.01912.13
5.3.160.0070.02012.13
5.3.150.0070.02212.13
5.3.140.0100.01912.12
5.3.130.0060.02112.12
5.3.120.0040.02512.12
5.3.110.0050.02412.12
5.3.100.0090.01911.85
5.3.90.0070.01911.84
5.3.80.0040.02111.84
5.3.70.0080.02111.84
5.3.60.0040.02311.83
5.3.50.0060.02011.81
5.3.40.0070.01811.81
5.3.30.0050.02011.78
5.3.20.0060.01911.68
5.3.10.0050.02011.66
5.3.00.0060.02011.65
5.2.170.0050.01810.40
5.2.160.0090.01410.40
5.2.150.0060.01610.40
5.2.140.0040.01710.40
5.2.130.0040.02010.38
5.2.120.0070.01710.38
5.2.110.0050.01710.38
5.2.100.0030.01810.38
5.2.90.0050.01610.38
5.2.80.0060.01610.38
5.2.70.0040.01810.38
5.2.60.0060.01710.36
5.2.50.0010.02010.34
5.2.40.0060.01610.33
5.2.30.0080.01310.32
5.2.20.0060.01810.31
5.2.10.0060.01610.26
5.2.00.0040.01710.19
5.1.60.0070.0139.84
5.1.50.0040.0149.84
5.1.40.0030.0169.82
5.1.30.0060.01310.00
5.1.20.0070.01310.01
5.1.10.0040.0169.87
5.1.00.0060.0149.87
5.0.50.0020.0149.11
5.0.40.0020.0119.04
5.0.30.0060.0168.95
5.0.20.0050.0108.93
5.0.10.0030.0128.92
5.0.00.0010.0208.92
4.4.90.0050.0078.18
4.4.80.0040.0098.17
4.4.70.0020.0138.17
4.4.60.0040.0118.17
4.4.50.0050.0098.17
4.4.40.0020.0178.14
4.4.30.0010.0118.17
4.4.20.0020.0098.21
4.4.10.0010.0108.21
4.4.00.0040.0138.17
4.3.110.0010.0118.13
4.3.100.0020.0108.12
4.3.90.0030.0098.11
4.3.80.0050.0138.08
4.3.70.0040.0088.11
4.3.60.0050.0078.10
4.3.50.0020.0108.10
4.3.40.0040.0128.06
4.3.30.0010.0117.43
4.3.20.0010.0107.42
4.3.10.0030.0097.40
4.3.00.0030.0139.18

preferences:
67.59 ms | 401 KiB | 5 Q