3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface InterfaceY { public function foo(): string; } class X { public function foo() { } } class Y extends X implements InterfaceY { public function foo(): string { } }

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.0000.01416.63
8.3.50.0130.00821.98
8.3.40.0110.00418.68
8.3.30.0140.00018.42
8.3.20.0040.00420.30
8.3.10.0080.00020.29
8.3.00.0040.00421.61
8.2.180.0090.00616.63
8.2.170.0090.00622.96
8.2.160.0130.00322.31
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00619.23
8.2.110.0000.01120.94
8.2.100.0090.00317.78
8.2.90.0040.00419.04
8.2.80.0060.00317.97
8.2.70.0000.00917.25
8.2.60.0040.00417.55
8.2.50.0060.00318.09
8.2.40.0080.00022.30
8.2.30.0000.00719.36
8.2.20.0000.00717.52
8.2.10.0000.00717.87
8.2.00.0000.00717.92
8.1.280.0070.00725.92
8.1.270.0040.00423.83
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00023.79
8.1.230.0070.00417.57
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.13
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0040.00418.49
8.1.160.0000.00720.69
8.1.150.0080.00018.81
8.1.140.0000.00819.42
8.1.130.0000.00717.64
8.1.120.0000.00717.35
8.1.110.0000.00717.30
8.1.100.0000.00717.32
8.1.90.0070.00017.27
8.1.80.0040.00417.40
8.1.70.0030.00317.38
8.1.60.0040.00417.50
8.1.50.0080.00017.33
8.1.40.0000.00817.48
8.1.30.0030.00517.48
8.1.20.0000.00817.50
8.1.10.0000.00817.41
8.1.00.0000.00817.17
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0040.00418.38
8.0.270.0000.00816.75
8.0.260.0000.00717.22
8.0.250.0030.00316.86
8.0.240.0070.00016.78
8.0.230.0000.00716.85
8.0.220.0050.00316.84
8.0.210.0040.00416.68
8.0.200.0060.00016.84
8.0.190.0000.00716.79
8.0.180.0040.00416.86
8.0.170.0050.00316.74
8.0.160.0000.00916.73
8.0.150.0040.00416.69
8.0.140.0030.00616.69
8.0.130.0000.00513.20
8.0.120.0020.00516.76
8.0.110.0000.00816.81
8.0.100.0040.00416.62
8.0.90.0000.00716.70
8.0.80.0060.00916.83
8.0.70.0040.00416.71
8.0.60.0040.00416.83
8.0.50.0000.00716.82
8.0.30.0070.01017.02
8.0.20.0120.00617.40
8.0.10.0070.00016.96
8.0.00.0120.00816.69
7.4.330.0050.00016.69
7.4.320.0030.00316.54
7.4.300.0000.00616.53
7.4.290.0070.00016.51
7.4.280.0000.00716.41
7.4.270.0000.00616.55
7.4.260.0000.00716.42
7.4.250.0040.00416.34
7.4.240.0070.00016.48
7.4.230.0000.00716.27
7.4.220.0120.00316.53
7.4.210.0050.01216.58
7.4.200.0030.00316.55
7.4.160.0090.00616.55
7.4.150.0070.01017.40
7.4.140.0080.01117.86
7.4.130.0140.00816.46
7.4.120.0120.00416.45
7.4.110.0090.00616.55
7.4.100.0000.01816.53
7.4.90.0070.01016.23
7.4.80.0030.01219.39
7.4.70.0080.00816.52
7.4.60.0130.00616.31
7.4.50.0000.01616.38
7.4.40.0130.00316.42
7.4.30.0090.01516.30
7.4.10.0060.01014.46
7.4.00.0090.00714.68
7.3.330.0030.00313.05
7.3.320.0000.00613.23
7.3.310.0090.00016.18
7.3.300.0000.00616.23
7.3.290.0000.00716.16
7.3.280.0090.01016.20
7.3.270.0140.00617.40
7.3.260.0060.01216.45
7.3.250.0100.00716.35
7.3.240.0120.00516.39
7.3.230.0070.01316.39
7.3.210.0070.01016.20
7.3.200.0070.01116.35
7.3.190.0130.00316.16
7.3.180.0100.00616.32
7.3.170.0090.01616.60
7.3.160.0120.00316.54
7.3.130.0150.00314.59
7.3.120.0120.00614.51
7.3.110.0120.00314.70
7.3.100.0070.00714.74
7.3.90.0060.00614.73
7.3.80.0030.00715.01
7.3.70.0040.01114.86
7.3.60.0070.00314.70
7.3.50.0060.00614.80
7.3.40.0070.00714.61
7.3.30.0030.01014.70
7.3.20.0070.00416.56
7.3.10.0000.01416.61
7.3.00.0060.00716.36
7.2.330.0100.01016.54
7.2.320.0090.01216.35
7.2.310.0100.00916.53
7.2.300.0070.01016.30
7.2.290.0070.01016.41
7.2.260.0030.01714.79
7.2.250.0070.01015.08
7.2.240.0150.00014.82
7.2.230.0070.01015.02
7.2.220.0060.00915.02
7.2.210.0000.01114.91
7.2.200.0090.00614.48
7.2.190.0030.01014.64
7.2.180.0100.00314.99
7.2.170.0000.01714.80
7.2.160.0100.00714.47
7.2.150.0070.00416.73
7.2.140.0040.01116.74
7.2.130.0090.00616.54
7.2.120.0100.00716.89
7.2.110.0070.00716.89
7.2.100.0070.01116.75
7.2.90.0070.00716.80
7.2.80.0030.00816.86
7.2.70.0110.00416.61
7.2.60.0080.00416.75
7.2.50.0090.00916.68
7.2.40.0030.01016.90
7.2.30.0060.00616.83
7.2.20.0060.01016.78
7.2.10.0070.00716.61
7.2.00.0050.00717.86
7.1.330.0040.01115.44
7.1.320.0030.01015.50
7.1.310.0030.01215.78
7.1.300.0030.00915.54
7.1.290.0050.00315.28
7.1.280.0030.01015.59
7.1.270.0040.00815.73
7.1.260.0040.01115.63
7.1.250.0000.01115.79
7.1.240.0070.00315.70
7.1.230.0040.00715.73
7.1.220.0000.01615.71
7.1.210.0070.00715.36
7.1.200.0070.00715.38
7.1.190.0070.00715.47
7.1.180.0030.00815.63
7.1.170.0070.00715.54
7.1.160.0000.01215.39
7.1.150.0070.00315.64
7.1.140.0070.00315.66
7.1.130.0030.01015.53
7.1.120.0030.01015.78
7.1.110.0030.00915.70
7.1.100.0050.00716.79
7.1.90.0070.00715.55
7.1.80.0060.00315.61
7.1.70.0050.00516.25
7.1.60.0070.01017.54
7.1.50.0030.00816.19
7.1.40.0030.00715.71
7.1.30.0070.00715.70
7.1.20.0110.00315.40
7.1.10.0040.01015.25
7.1.00.0060.03818.90
7.0.330.0040.00415.26
7.0.320.0040.01415.27
7.0.310.0090.00315.27
7.0.300.0030.01015.34
7.0.290.0060.00315.12
7.0.280.0110.00415.43
7.0.270.0070.00315.18
7.0.260.0110.00415.33
7.0.250.0050.00315.37
7.0.240.0040.00415.18
7.0.230.0090.00615.38
7.0.220.0070.00715.18
7.0.210.0060.00615.27
7.0.200.1000.00515.13
7.0.190.0100.00015.36
7.0.180.0040.01115.30
7.0.170.0070.00715.31
7.0.160.0060.00615.42
7.0.150.0080.00315.44
7.0.140.0060.00614.95
7.0.130.0000.01315.25
7.0.120.0000.01115.12
7.0.110.0060.00615.37
7.0.100.0070.00715.30
7.0.90.0080.00315.36
7.0.80.0060.00615.23
7.0.70.0050.04218.39
7.0.60.0070.03218.58
7.0.50.0070.03318.75
7.0.40.0090.03816.72
7.0.30.0070.04416.70
7.0.20.0050.04516.78
7.0.10.0070.02516.71
7.0.00.0050.04516.76
5.6.400.0070.00414.39
5.6.390.0060.00314.21
5.6.380.0030.01414.29
5.6.370.0100.00314.07
5.6.360.0000.00814.24
5.6.350.0060.00614.34
5.6.340.0060.00614.26
5.6.330.0000.01214.20
5.6.320.0090.00314.05
5.6.310.0060.00613.96
5.6.300.0110.00414.03
5.6.290.0040.01113.89
5.6.280.0030.01014.27
5.6.270.0000.00913.98
5.6.260.0000.01014.03
5.6.250.0030.01013.98
5.6.240.0090.00614.23
5.6.230.0100.00314.02
5.6.220.0080.02217.33
5.6.210.0070.03217.35
5.6.200.0080.03717.68
5.6.190.0070.04217.58
5.6.180.0080.04317.64
5.6.170.0050.04717.60
5.6.160.0000.04617.58
5.6.150.0050.03217.45
5.6.140.0070.04517.50
5.6.130.0050.04917.49
5.6.120.0060.04317.48
5.6.110.0080.04317.48
5.6.100.0070.03017.52
5.6.90.0060.03617.54
5.6.80.0100.04017.36
5.6.70.0090.03817.17
5.6.60.0030.02917.24
5.6.50.0090.04017.30
5.6.40.0020.02417.16
5.6.30.0070.04517.25
5.6.20.0120.03617.30
5.6.10.0040.02417.24
5.6.00.0040.02517.23
5.5.380.0090.00614.07
5.5.370.0040.01113.94
5.5.360.0000.04117.03
5.5.350.0080.02417.24
5.5.340.0050.04517.21
5.5.330.0070.04217.44
5.5.320.0030.03217.26
5.5.310.0050.04217.50
5.5.300.0070.04217.41
5.5.290.0090.03517.31
5.5.280.0070.04317.35
5.5.270.0030.03817.37
5.5.260.0020.04817.48
5.5.250.0090.04017.25
5.5.240.0090.04217.10
5.5.230.0050.04317.11
5.5.220.0060.04617.15
5.5.210.0050.03316.94
5.5.200.0080.03016.99
5.5.190.0060.04316.93
5.5.180.0050.02917.15
5.5.170.0000.01414.13
5.5.160.0020.05117.09
5.5.150.0060.04117.04
5.5.140.0060.04617.06
5.5.130.0100.04217.05
5.5.120.0080.02917.02
5.5.110.0060.04617.09
5.5.100.0060.04317.04
5.5.90.0070.03416.85
5.5.80.0050.03817.10
5.5.70.0120.03516.92
5.5.60.0070.03516.93
5.5.50.0030.04216.98
5.5.40.0070.03317.07
5.5.30.0040.03117.02
5.5.20.0060.04317.04
5.5.10.0090.03616.86
5.5.00.0080.04216.96
5.4.450.0030.08719.46
5.4.440.0100.07319.53
5.4.430.0000.08319.36
5.4.420.0030.05319.44
5.4.410.0070.07719.23
5.4.400.0000.07718.85
5.4.390.0030.07019.23
5.4.380.0000.06019.04
5.4.370.0000.08319.05
5.4.360.0070.07319.05
5.4.350.0070.03318.86
5.4.340.0000.04319.05
5.4.320.0070.03718.85
5.4.310.0030.08319.13
5.4.300.0000.08319.03
5.4.290.0070.07719.14
5.4.280.0030.08318.94
5.4.270.0100.07719.03
5.4.260.0000.06718.87
5.4.250.0070.05319.08
5.4.240.0100.06719.16
5.4.230.0130.06719.02
5.4.220.0030.07019.16
5.4.210.0070.06319.13
5.4.200.0000.08318.87
5.4.190.0000.05719.09
5.4.180.0070.07718.87
5.4.170.0070.07318.84
5.4.160.0030.07319.21
5.4.150.0130.05719.11
5.4.140.0030.06316.42
5.4.130.0000.04716.35
5.4.120.0030.05316.51
5.4.110.0100.07316.43
5.4.100.0030.07316.36
5.4.90.0000.06016.50
5.4.80.0130.06316.38
5.4.70.0000.06716.34
5.4.60.0070.07316.48
5.4.50.0000.05716.36
5.4.40.0030.07716.46
5.4.30.0030.05716.44
5.4.20.0030.07716.39
5.4.10.0030.07716.43
5.4.00.0000.07715.89
5.3.290.0070.07714.70
5.3.280.0070.08014.65
5.3.270.0030.04314.54
5.3.260.0000.05714.66
5.3.250.0030.06014.53
5.3.240.0000.07314.55
5.3.230.0070.06714.63
5.3.220.0030.07714.52
5.3.210.0030.05714.49
5.3.200.0030.04014.57
5.3.190.0030.07714.71
5.3.180.0030.07014.53
5.3.170.0100.07014.70
5.3.160.0000.07714.54
5.3.150.0070.04714.65
5.3.140.0000.06714.52
5.3.130.0000.05314.61
5.3.120.0030.07714.50
5.3.110.0130.06314.48
5.3.100.0030.07314.05
5.3.90.0000.06314.05
5.3.80.0070.05013.94
5.3.70.0000.08014.04
5.3.60.0070.05014.09
5.3.50.0100.07013.95
5.3.40.0100.07013.83
5.3.30.0070.04714.01
5.3.20.0030.05013.83
5.3.10.0030.05713.64
5.3.00.0070.07313.67
5.2.170.0070.05712.42
5.2.160.0100.05012.42
5.2.150.0030.06312.42
5.2.140.0030.06312.42
5.2.130.0000.06712.42
5.2.120.0030.05712.42
5.2.110.0070.05712.42
5.2.100.0000.03712.42
5.2.90.0100.05712.42
5.2.80.0070.05712.42
5.2.70.0030.06012.42
5.2.60.0070.04712.42
5.2.50.0070.05312.42
5.2.40.0000.05712.42
5.2.30.0000.05012.42
5.2.20.0030.05712.42
5.2.10.0070.05312.42
5.2.00.0000.06712.42
5.1.60.0030.05712.42
5.1.50.0030.04312.42
5.1.40.0000.06012.42
5.1.30.0030.05712.42
5.1.20.0070.03712.42
5.1.10.0030.05712.42
5.1.00.0070.05012.42
5.0.50.0030.04312.42
5.0.40.0100.02012.42
5.0.30.0030.04012.42
5.0.20.0000.04312.42
5.0.10.0000.05012.42
5.0.00.0000.06712.42
4.4.90.0030.03312.42
4.4.80.0030.03312.42
4.4.70.0070.03012.42
4.4.60.0000.03012.42
4.4.50.0070.02012.42
4.4.40.0000.04312.42
4.4.30.0000.03712.42
4.4.20.0000.02712.42
4.4.10.0000.03012.42
4.4.00.0000.06012.42
4.3.110.0070.03312.42
4.3.100.0000.03712.42
4.3.90.0030.03312.42
4.3.80.0070.05012.42
4.3.70.0030.03312.42
4.3.60.0030.03312.42
4.3.50.0000.03312.42
4.3.40.0000.05712.42
4.3.30.0000.03712.42
4.3.20.0070.03012.42
4.3.10.0000.03012.42
4.3.00.0030.03312.42

preferences:
37.6 ms | 401 KiB | 5 Q