3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface a { function foo(); } interface b { function foo(); } interface c extends a, b { function bar(); } class test implements c { function foo() {} function bar() {} } $test = new test;

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.0070.01118.30
8.3.60.0090.00516.50
8.3.50.0080.01017.27
8.3.40.0110.01118.77
8.3.30.0070.01418.42
8.3.20.0080.00018.40
8.3.10.0050.00320.41
8.3.00.0030.00519.13
8.2.180.0100.00716.50
8.2.170.0110.00422.96
8.2.160.0130.00721.19
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00420.84
8.2.110.0090.00020.38
8.2.100.0110.00017.72
8.2.90.0040.00419.47
8.2.80.0070.00319.22
8.2.70.0050.00317.38
8.2.60.0050.00317.80
8.2.50.0050.00318.07
8.2.40.0030.00618.16
8.2.30.0000.00717.98
8.2.20.0040.00419.43
8.2.10.0080.00017.67
8.2.00.0070.00417.68
8.1.280.0120.00625.92
8.1.270.0080.00624.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.34
8.1.230.0090.00321.04
8.1.220.0050.00317.74
8.1.210.0040.00418.87
8.1.200.0060.00317.22
8.1.190.0040.00417.53
8.1.180.0090.00018.10
8.1.170.0000.00818.66
8.1.160.0040.00418.87
8.1.150.0040.00418.54
8.1.140.0040.00417.44
8.1.130.0000.00817.80
8.1.120.0080.00017.46
8.1.110.0020.00517.44
8.1.100.0000.00717.47
8.1.90.0040.00417.45
8.1.80.0000.00717.47
8.1.70.0030.00517.33
8.1.60.0030.00617.55
8.1.50.0040.00417.35
8.1.40.0050.00317.54
8.1.30.0040.00417.59
8.1.20.0040.00417.48
8.1.10.0000.00717.38
8.1.00.0040.00417.28
8.0.300.0080.00019.85
8.0.290.0000.00716.63
8.0.280.0000.00718.35
8.0.270.0000.00717.24
8.0.260.0030.00316.76
8.0.250.0050.00216.92
8.0.240.0000.00716.93
8.0.230.0000.00816.83
8.0.220.0040.00416.91
8.0.210.0030.00316.77
8.0.200.0030.00316.86
8.0.190.0000.00716.83
8.0.180.0070.00016.84
8.0.170.0090.00016.89
8.0.160.0070.00016.77
8.0.150.0040.00416.91
8.0.140.0030.00616.86
8.0.130.0070.00013.39
8.0.120.0030.00416.81
8.0.110.0050.00316.88
8.0.100.0040.00416.68
8.0.90.0040.00416.91
8.0.80.0130.00716.90
8.0.70.0050.00316.68
8.0.60.0000.00916.73
8.0.50.0040.00416.87
8.0.30.0050.01317.11
8.0.20.0090.00916.95
8.0.10.0030.00316.84
8.0.00.0100.00916.86
7.4.330.0000.00612.96
7.4.320.0000.00716.51
7.4.300.0000.00616.50
7.4.290.0000.00816.45
7.4.280.0050.00316.50
7.4.270.0000.00716.60
7.4.260.0000.00513.28
7.4.250.0080.00016.60
7.4.240.0000.00716.60
7.4.230.0070.00016.41
7.4.220.0130.00616.64
7.4.210.0070.00816.58
7.4.200.0000.00716.61
7.4.190.0070.00016.58
7.4.160.0090.00616.28
7.4.150.0110.00716.56
7.4.140.0120.00616.39
7.4.130.0080.01016.49
7.4.120.0100.00616.45
7.4.110.0070.01116.32
7.4.100.0090.00916.39
7.4.90.0040.01216.55
7.4.80.0070.01019.39
7.4.70.0110.00416.50
7.4.60.0030.01716.50
7.4.50.0060.00616.64
7.4.40.0060.00916.62
7.4.30.0130.00316.56
7.4.00.0130.00014.89
7.3.330.0030.00313.19
7.3.320.0000.00613.16
7.3.310.0070.00016.14
7.3.300.0000.00616.18
7.3.290.0140.00016.16
7.3.280.0080.01116.19
7.3.270.0140.00416.23
7.3.260.0100.00716.45
7.3.250.0120.00616.27
7.3.240.0030.01316.05
7.3.230.0100.00716.42
7.3.210.0140.00416.12
7.3.200.0060.00916.18
7.3.190.0220.00016.20
7.3.180.0140.00316.15
7.3.170.0030.01316.22
7.3.160.0030.01216.59
7.3.120.0060.00914.70
7.2.330.0160.00616.64
7.2.320.0070.01016.58
7.2.310.0130.00716.63
7.2.300.0030.01316.64
7.2.290.0100.00616.53
7.2.60.0030.00816.69
7.2.00.0210.00918.88
7.1.200.0040.00815.45
7.1.100.0070.00717.88
7.1.70.0030.00616.95
7.1.60.0090.00319.40
7.1.50.0060.01516.85
7.1.00.0070.06722.33
7.0.200.0000.00816.66
7.0.140.0000.07721.97
7.0.120.0030.07322.09
7.0.60.0070.04019.91
7.0.50.0030.04017.88
7.0.40.0030.09020.13
7.0.30.0300.08020.24
7.0.20.0130.04320.10
7.0.10.0130.07720.31
7.0.00.0130.05020.12
5.6.280.0070.06721.13
5.6.210.0130.07720.52
5.6.200.0000.09018.19
5.6.190.0130.08020.77
5.6.180.0270.06720.64
5.6.170.0170.05020.49
5.6.160.0030.04720.46
5.6.150.0000.05018.22
5.6.140.0130.05718.24
5.6.130.0030.04318.19
5.6.120.0070.05321.00
5.6.110.0130.07720.98
5.6.100.0170.07721.00
5.6.90.0070.08321.01
5.6.80.0100.08720.51
5.6.70.0100.08020.38
5.5.350.0300.07020.36
5.5.340.0030.08718.02
5.5.330.0130.07720.13
5.5.320.0400.05020.32
5.5.310.0330.07020.34
5.5.300.0070.04318.04
5.5.290.0070.05017.95
5.5.280.0070.06020.88
5.5.270.0130.04020.79
5.5.260.0070.06720.88
5.5.250.0130.07320.59
5.5.240.0230.08020.27
5.4.450.0070.07319.20
5.4.440.0030.06719.40
5.4.430.0030.04019.47
5.4.420.0030.04019.54
5.4.410.0070.08019.02
5.4.400.0000.04019.25
5.4.390.0070.05319.16
5.4.380.0070.04019.25
5.4.370.0030.06019.15
5.4.360.0030.07718.98
5.4.350.0130.06719.00
5.4.340.0100.03318.86
5.4.320.0070.07319.14
5.4.310.0030.04719.11
5.4.300.0100.05719.24
5.4.290.0030.05718.94
5.4.280.0130.07018.92
5.4.270.0030.06319.07
5.4.260.0070.06319.15
5.4.250.0030.06719.14
5.4.240.0070.06719.24
5.4.230.0100.04018.84
5.4.220.0030.04019.13
5.4.210.0100.05319.11
5.4.200.0030.04019.16
5.4.190.0030.03719.19
5.4.180.0030.04018.96
5.4.170.0130.05019.23
5.4.160.0070.08319.23
5.4.150.0100.04019.23
5.4.140.0000.05316.43
5.4.130.0130.05716.36
5.4.120.0100.04016.37
5.4.110.0070.05316.50
5.4.100.0070.04316.43
5.4.90.0070.03716.46
5.4.80.0030.07016.50
5.4.70.0000.05016.44
5.4.60.0200.05016.41
5.4.50.0070.03316.27
5.4.40.0000.07716.39
5.4.30.0070.04016.46
5.4.20.0070.03716.36
5.4.10.0030.03316.30
5.4.00.0070.03715.82
5.3.290.0070.04714.67
5.3.280.0030.07714.75
5.3.270.0100.07714.61
5.3.260.0030.08014.61
5.3.250.0130.04714.66
5.3.240.0100.07314.63
5.3.230.0170.07014.65
5.3.220.0100.03714.57
5.3.210.0100.04714.63
5.3.200.0100.04314.62
5.3.190.0000.08014.56
5.3.180.0030.07314.56
5.3.170.0030.06014.58
5.3.160.0000.04314.45
5.3.150.0100.06714.59
5.3.140.0070.04314.56
5.3.130.0000.04014.60
5.3.120.0070.03714.64
5.3.110.0000.04714.57
5.3.100.0000.04014.07
5.3.90.0070.03314.17
5.3.80.0000.03714.20
5.3.70.0000.04014.02
5.3.60.0030.03313.93
5.3.50.0030.03313.99
5.3.40.0070.04314.03
5.3.30.0070.06713.96
5.3.20.0000.07313.64
5.3.10.0000.03713.67
5.3.00.0030.04313.80
5.2.170.0100.02311.21
5.2.160.0070.03311.16
5.2.150.0100.05711.20
5.2.140.0030.07011.21
5.2.130.0070.05311.11
5.2.120.0070.04311.11
5.2.110.0030.02711.03
5.2.100.0070.02711.05
5.2.90.0030.02711.11
5.2.80.0000.03011.06
5.2.70.0000.03311.13
5.2.60.0000.03011.05
5.2.50.0000.03010.91
5.2.40.0000.03011.16
5.2.30.0000.03011.01
5.2.20.0000.03011.02
5.2.10.0070.02311.02
5.2.00.0030.02710.79
5.1.60.0000.0339.91
5.1.50.0000.0279.96
5.1.40.0030.0209.93
5.1.30.0030.02310.39
5.1.20.0030.02710.31
5.1.10.0000.02710.08
5.1.00.0000.02710.05
5.0.50.0000.0208.59
5.0.40.0000.0208.39
5.0.30.0000.0308.25
5.0.20.0000.0208.25
5.0.10.0000.0208.23
5.0.00.0000.0308.14
4.4.90.0030.0138.02
4.4.80.0030.0138.02
4.4.70.0030.0138.02
4.4.60.0000.0178.02
4.4.50.0030.0138.02
4.4.40.0000.0238.02
4.4.30.0030.0138.02
4.4.20.0000.0178.02
4.4.10.0000.0178.02
4.4.00.0000.0238.02
4.3.110.0030.0138.02
4.3.100.0000.0138.02
4.3.90.0000.0138.02
4.3.80.0030.0208.02
4.3.70.0030.0108.02
4.3.60.0000.0138.02
4.3.50.0000.0138.02
4.3.40.0000.0238.02
4.3.30.0000.0178.02
4.3.20.0030.0138.02
4.3.10.0000.0138.02
4.3.00.0030.0138.02

preferences:
45.13 ms | 401 KiB | 5 Q