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()));

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.70.0040.01418.30
8.3.60.0130.00718.43
8.3.50.0120.00621.93
8.3.40.0150.00018.58
8.3.30.0100.01018.97
8.3.20.0080.00020.16
8.3.10.0080.00020.29
8.3.00.0000.00819.56
8.2.180.0120.00416.38
8.2.170.0140.00022.96
8.2.160.0050.00820.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00022.00
8.2.110.0090.00022.07
8.2.100.0000.01119.45
8.2.90.0050.00319.19
8.2.80.0060.00317.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00418.19
8.2.30.0000.00719.15
8.2.20.0000.00817.57
8.2.10.0030.00617.97
8.2.00.0000.00717.49
8.1.280.0120.00425.92
8.1.270.0150.00422.13
8.1.260.0060.00326.35
8.1.250.0030.00628.09
8.1.240.0090.00023.96
8.1.230.0040.00718.90
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.10
8.1.190.0000.00717.23
8.1.180.0000.00718.10
8.1.170.0000.00818.66
8.1.160.0070.00021.93
8.1.150.0080.00018.82
8.1.140.0040.00317.45
8.1.130.0030.00317.64
8.1.120.0000.00817.37
8.1.110.0000.00817.43
8.1.100.0070.00017.30
8.1.90.0000.00717.41
8.1.80.0070.00017.41
8.1.70.0000.00717.33
8.1.60.0060.00317.49
8.1.50.0080.00017.51
8.1.40.0000.00817.40
8.1.30.0050.00317.48
8.1.20.0000.00817.61
8.1.10.0000.00717.33
8.1.00.0000.00817.24
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.39
8.0.270.0000.00717.26
8.0.260.0000.00717.22
8.0.250.0030.00316.83
8.0.240.0020.00516.79
8.0.230.0050.00317.00
8.0.220.0000.00716.89
8.0.210.0070.00016.88
8.0.200.0050.00316.99
8.0.190.0000.00916.92
8.0.180.0040.00416.93
8.0.170.0080.00016.80
8.0.160.0070.00016.94
8.0.150.0030.00316.68
8.0.140.0030.00416.82
8.0.130.0000.00613.18
8.0.120.0000.00716.75
8.0.110.0030.00316.70
8.0.100.0000.00716.68
8.0.90.0070.00016.69
8.0.80.0030.01816.81
8.0.70.0000.00716.63
8.0.60.0040.00416.65
8.0.50.0050.00316.86
8.0.30.0140.00817.05
8.0.20.0120.01117.40
8.0.10.0030.00316.84
8.0.00.0120.00816.89
7.4.330.0000.00515.00
7.4.320.0030.00316.58
7.4.300.0000.00616.52
7.4.290.0000.00816.39
7.4.280.0030.00616.52
7.4.270.0030.00316.46
7.4.260.0030.00316.32
7.4.250.0030.00516.48
7.4.240.0000.00716.44
7.4.230.0030.00316.61
7.4.220.0070.01216.55
7.4.210.0070.00716.49
7.4.200.0000.00716.63
7.4.160.0080.00816.46
7.4.150.0130.01017.40
7.4.140.0060.01317.86
7.4.130.0110.00716.48
7.4.120.0070.01016.40
7.4.110.0120.00616.50
7.4.100.0120.00616.42
7.4.90.0060.01116.71
7.4.80.0060.01216.31
7.4.70.0130.00316.40
7.4.60.0060.01016.51
7.4.50.0000.00816.51
7.4.40.0150.00016.20
7.4.30.0080.00816.52
7.4.00.0070.01015.07
7.3.330.0070.00013.30
7.3.320.0060.00013.32
7.3.310.0070.00016.19
7.3.300.0030.00316.40
7.3.290.0040.01416.23
7.3.280.0090.00716.31
7.3.270.0070.01017.40
7.3.260.0140.00316.19
7.3.250.0050.01216.34
7.3.240.0140.00316.28
7.3.230.0060.01216.52
7.3.210.0070.01016.23
7.3.200.0070.01019.39
7.3.190.0100.00716.17
7.3.180.0090.01516.32
7.3.170.0080.00816.45
7.3.160.0090.00616.21
7.3.120.0050.01314.71
7.3.110.0120.00714.63
7.3.100.0070.01114.83
7.3.90.0020.01014.62
7.3.80.0070.00614.67
7.3.70.0020.01414.47
7.3.60.0070.00414.80
7.3.50.0070.00614.71
7.3.40.0070.00714.87
7.3.30.0090.00514.63
7.3.20.0080.00416.64
7.3.10.0040.00716.59
7.3.00.0080.00416.78
7.2.330.0160.00616.69
7.2.320.0090.00916.50
7.2.310.0130.00316.66
7.2.300.0090.01216.77
7.2.290.0120.00616.67
7.2.250.0090.01015.21
7.2.240.0040.01315.00
7.2.230.0000.01415.03
7.2.220.0070.00815.14
7.2.210.0080.00814.96
7.2.200.0040.00714.83
7.2.190.0090.00714.84
7.2.180.0030.00814.99
7.2.170.0050.00514.87
7.2.60.0030.01316.81
7.1.330.0020.01115.69
7.1.320.0050.00715.79
7.1.310.0090.00315.67
7.1.300.0020.01115.52
7.1.290.0080.00615.69
7.1.280.0010.00915.53
7.1.270.0040.01115.52
7.1.260.0010.01015.62
7.1.200.0060.00615.79
7.1.70.0040.01216.89
7.1.60.0110.01419.32
7.1.50.0210.01834.44
7.1.00.0100.07022.47
7.0.200.0070.00016.66
7.0.140.0030.07322.00
7.0.60.0170.06721.72
7.0.50.0100.07717.73
7.0.40.0100.06320.06
7.0.30.0300.07020.34
7.0.20.0170.04720.26
7.0.10.0030.09020.23
7.0.00.0130.08020.26
5.6.280.0030.07320.86
5.6.210.0100.04720.72
5.6.200.0170.05718.21
5.6.190.0070.09020.41
5.6.180.0500.07020.47
5.6.170.0330.05720.57
5.6.160.0070.08720.71
5.6.150.0070.06718.27
5.6.140.0030.05718.17
5.6.130.0070.07718.15
5.6.120.0070.08321.12
5.6.110.0170.08320.98
5.6.100.0000.04720.88
5.6.90.0000.04320.95
5.6.80.0100.07720.37
5.5.350.0170.07720.35
5.5.340.0100.04717.99
5.5.330.0130.03720.26
5.5.320.0300.07020.24
5.5.310.0230.07720.27
5.5.300.0030.04018.13
5.5.290.0030.04017.93
5.5.280.0130.07720.98
5.5.270.0200.07020.95
5.5.260.0000.04320.85
5.5.250.0000.08720.50
5.5.240.0070.03320.18
5.4.450.0100.04319.46
5.4.440.0170.03719.52
5.4.430.0100.04019.31
5.4.420.0200.06719.47
5.4.410.0200.04019.32
5.4.400.0230.04719.11
5.4.390.0130.04019.20
5.4.380.0200.07319.18
5.4.370.0330.06319.07
5.4.360.0370.07319.17
5.4.350.0200.06019.26
5.4.340.0200.06319.15
5.4.320.0200.05319.13
5.4.310.0370.05019.11
5.4.300.0100.06019.22
5.4.290.0230.07318.95
5.4.280.0430.05019.11
5.4.270.0300.04719.21
5.4.260.0170.03719.22
5.4.250.0100.04718.99
5.4.240.0300.04019.21
5.4.230.0230.07018.98
5.4.220.0300.06019.16
5.4.210.0300.06019.12
5.4.200.0300.05719.17
5.4.190.0200.07718.92
5.4.180.0170.04018.91
5.4.170.0300.04019.23
5.4.160.0270.03319.24
5.4.150.0300.07019.19
5.4.140.0270.06016.38
5.4.130.0270.06016.34
5.4.120.0300.05316.41
5.4.110.0230.07016.63
5.4.100.0200.04016.48
5.4.90.0170.05016.33
5.4.80.0200.06716.46
5.4.70.0270.05016.49
5.4.60.0200.04316.43
5.4.50.0230.03316.23
5.4.40.0200.04016.22
5.4.30.0130.03716.29
5.4.20.0270.07016.29
5.4.10.0100.06016.43
5.4.00.0300.05715.83
5.3.290.0230.05714.82
5.3.280.0270.06014.66
5.3.270.0330.04714.63
5.3.260.0130.04314.61
5.3.250.0200.04714.64
5.3.240.0270.06014.60
5.3.230.0200.04714.61
5.3.220.0200.05714.56
5.3.210.0270.07314.72
5.3.200.0170.03714.57
5.3.190.0270.03014.73
5.3.180.0230.03714.63
5.3.170.0270.06014.71
5.3.160.0270.07314.57
5.3.150.0230.07014.71
5.3.140.0300.03714.57
5.3.130.0200.04714.58
5.3.120.0230.07014.58
5.3.110.0270.06014.55
5.3.100.0200.05314.05
5.3.90.0170.08014.07
5.3.80.0230.04014.03
5.3.70.0170.06314.10
5.3.60.0200.03713.93
5.3.50.0230.03313.95
5.3.40.0200.05014.01
5.3.30.0230.06713.91
5.3.20.0330.05313.59
5.3.10.0170.04013.61
5.3.00.0230.05313.82
5.2.170.0170.03011.08
5.2.160.0170.05311.21
5.2.150.0230.05711.04
5.2.140.0330.04311.18
5.2.130.0100.03311.11
5.2.120.0130.03011.08
5.2.110.0230.04011.18
5.2.100.0130.04711.05
5.2.90.0170.03711.07
5.2.80.0130.03011.16
5.2.70.0200.02711.09
5.2.60.0200.03311.05
5.2.50.0270.02711.17
5.2.40.0230.02010.92
5.2.30.0100.03311.03
5.2.20.0070.05011.02
5.2.10.0170.03010.92
5.2.00.0130.04310.62
5.1.60.0100.03310.05
5.1.50.0170.0439.97
5.1.40.0200.03710.03
5.1.30.0230.04310.36
5.1.20.0100.05710.39
5.1.10.0200.04310.09
5.1.00.0100.05710.09
5.0.50.0130.0338.56
5.0.40.0130.0378.38
5.0.30.0030.0478.13
5.0.20.0100.0338.11
5.0.10.0100.0408.14
5.0.00.0100.0638.13
4.4.90.0070.0177.84
4.4.80.0070.0237.84
4.4.70.0030.0377.84
4.4.60.0070.0177.84
4.4.50.0100.0207.84
4.4.40.0100.0537.84
4.4.30.0100.0207.84
4.4.20.0030.0407.84
4.4.10.0030.0377.84
4.4.00.0170.0177.84
4.3.110.0100.0337.84
4.3.100.0030.0377.84
4.3.90.0130.0207.84
4.3.80.0100.0507.84
4.3.70.0100.0137.84
4.3.60.0070.0237.84
4.3.50.0100.0337.84
4.3.40.0070.0337.84
4.3.30.0030.0207.84
4.3.20.0000.0377.84
4.3.10.0070.0337.84
4.3.00.0030.0307.84

preferences:
52.25 ms | 401 KiB | 5 Q