3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A_inner_i { public function bar(); } class A_inner implements A_inner_i { public function bar() {} } abstract class B_inner_i { public abstract function bar(); } class B_inner extends B_inner_i { public function bar() { 1+1; } } class B { public function foo(B_inner_i $b) { $b->bar(); } } $b = new B(); $b_inner = new B_inner(); $b->foo($b_inner);

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.0120.00616.50
8.3.60.0090.00618.30
8.3.50.0130.00517.23
8.3.40.0090.00618.59
8.3.30.0070.00718.73
8.3.20.0060.00318.48
8.3.10.0080.00018.66
8.3.00.0070.00319.23
8.2.180.0150.00016.38
8.2.170.0120.00922.96
8.2.160.0070.01019.02
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00421.00
8.2.110.0060.00321.04
8.2.100.0080.00318.09
8.2.90.0040.00419.23
8.2.80.0000.00818.22
8.2.70.0000.00817.63
8.2.60.0060.00318.04
8.2.50.0000.00718.04
8.2.40.0040.00419.48
8.2.30.0090.00017.55
8.2.20.0030.00617.49
8.2.10.0000.00717.63
8.2.00.0100.00017.58
8.1.280.0070.01025.92
8.1.270.0060.00323.99
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0070.00322.01
8.1.230.0070.00417.70
8.1.220.0040.00417.75
8.1.210.0060.00318.77
8.1.200.0000.01017.38
8.1.190.0030.00517.09
8.1.180.0050.00318.10
8.1.170.0050.00317.62
8.1.160.0070.00018.92
8.1.150.0040.00418.50
8.1.140.0030.00517.36
8.1.130.0000.00717.36
8.1.120.0000.00717.53
8.1.110.0000.00817.41
8.1.100.0030.00317.45
8.1.90.0050.00217.37
8.1.80.0070.00017.40
8.1.70.0080.00017.35
8.1.60.0000.00717.60
8.1.50.0050.00317.34
8.1.40.0070.00317.50
8.1.30.0030.00517.59
8.1.20.0000.00817.55
8.1.10.0050.00217.36
8.1.00.0040.00417.33
8.0.300.0060.00318.77
8.0.290.0070.00416.63
8.0.280.0030.00318.49
8.0.270.0070.00017.16
8.0.260.0030.00316.89
8.0.250.0050.00217.04
8.0.240.0040.00417.07
8.0.230.0030.00616.83
8.0.220.0070.00016.87
8.0.210.0060.00316.86
8.0.200.0000.00616.85
8.0.190.0000.00716.94
8.0.180.0040.00416.99
8.0.170.0060.00316.96
8.0.160.0030.00316.99
8.0.150.0020.00516.89
8.0.140.0030.00616.99
8.0.130.0000.00513.44
8.0.120.0000.00816.96
8.0.110.0040.00416.93
8.0.100.0080.00016.95
8.0.90.0040.00416.98
8.0.80.0070.00717.01
8.0.70.0000.00716.85
8.0.60.0030.00616.97
8.0.50.0040.00416.93
8.0.30.0130.01017.04
8.0.20.0090.00917.27
8.0.10.0000.00816.95
8.0.00.0090.01416.76
7.4.330.0050.00012.96
7.4.320.0030.00316.63
7.4.300.0030.00316.55
7.4.290.0030.00316.59
7.4.280.0040.00416.46
7.4.270.0000.00716.66
7.4.260.0000.00513.23
7.4.250.0060.00316.63
7.4.240.0040.00416.42
7.4.230.0030.00316.71
7.4.220.0070.01016.66
7.4.210.0150.00616.48
7.4.200.0040.00416.50
7.4.190.0050.00316.75
7.4.160.0100.00516.38
7.4.150.0120.00616.32
7.4.140.0130.00317.86
7.4.130.0100.01416.44
7.4.120.0100.01016.37
7.4.110.0090.00916.48
7.4.100.0170.00016.39
7.4.90.0140.00616.50
7.4.80.0160.00616.62
7.4.70.0000.01716.54
7.4.60.0030.01416.54
7.4.50.0050.00016.46
7.4.40.0070.00716.32
7.4.30.0060.01116.73
7.4.00.0120.00314.79
7.3.330.0000.00613.11
7.3.320.0000.00513.08
7.3.310.0040.00416.14
7.3.300.0060.00316.11
7.3.290.0060.01116.21
7.3.280.0080.01216.26
7.3.270.0040.01416.29
7.3.260.0130.00516.41
7.3.240.0130.00316.45
7.3.230.0140.00316.35
7.3.210.0030.01416.48
7.3.200.0150.00419.39
7.3.190.0170.00416.31
7.3.180.0070.01316.51
7.3.170.0120.00416.44
7.3.160.0130.00316.35
7.3.120.0060.00914.86
7.3.00.0110.00416.76
7.2.330.0110.00616.74
7.2.320.0060.01016.79
7.2.310.0200.00316.39
7.2.300.0080.00816.66
7.2.290.0050.01316.59
7.2.130.0060.00616.98
7.2.120.0060.00916.62
7.2.110.0030.00617.04
7.2.100.0030.01116.81
7.2.90.0040.01216.93
7.2.80.0030.01016.70
7.2.70.0060.00616.93
7.2.60.0040.00416.89
7.2.50.0040.00716.88
7.2.40.0060.00316.56
7.2.30.0070.00416.90
7.2.20.0090.00316.65
7.2.10.0040.00816.83
7.2.00.0050.01017.99
7.1.250.0060.00315.70
7.1.240.0000.00915.64
7.1.230.0040.00815.84
7.1.220.0030.00515.34
7.1.210.0100.00015.73
7.1.200.0030.00715.67
7.1.190.0040.00815.73
7.1.180.0030.01215.68
7.1.170.0000.00815.38
7.1.160.0060.00615.45
7.1.150.0080.00315.69
7.1.140.0040.00815.78
7.1.130.0120.00015.91
7.1.120.0030.00915.48
7.1.110.0030.01015.76
7.1.100.0040.00516.82
7.1.90.0040.00715.59
7.1.80.0030.00915.70
7.1.70.0040.00716.31
7.1.60.0050.01117.53
7.1.50.0070.01216.28
7.1.40.0090.00615.77
7.1.30.0030.00715.86
7.1.20.0040.00415.70
7.1.10.0000.00915.85
7.1.00.0030.02719.12
7.0.330.0030.00715.08
7.0.320.0060.00615.25
7.0.310.0100.00315.37
7.0.300.0090.00615.52
7.0.290.0100.00315.16
7.0.280.0060.01015.30
7.0.270.0080.00315.35
7.0.260.0000.01315.31
7.0.250.0060.00615.25
7.0.240.0060.00615.39
7.0.230.0080.00015.37
7.0.220.0040.00715.37
7.0.210.0080.00315.12
7.0.200.0100.00715.95
7.0.190.0030.00715.52
7.0.180.0030.01315.32
7.0.170.0040.00415.48
7.0.160.0000.00815.33
7.0.150.0040.01115.36
7.0.140.0080.03218.57
7.0.130.0080.00314.97
7.0.120.0050.03418.63
7.0.110.0060.00614.98
7.0.100.0000.01215.19
7.0.90.0060.00915.34
7.0.80.0000.01315.44
7.0.70.0110.00415.50
7.0.60.0030.04617.58
7.0.50.0050.03016.60
7.0.40.0100.04015.57
7.0.30.0060.02815.62
7.0.20.0050.03915.40
7.0.10.0050.04015.50
7.0.00.0080.03715.61
5.6.380.0100.00313.97
5.6.370.0080.00414.12
5.6.360.0090.00614.20
5.6.350.0030.00614.47
5.6.340.0030.01014.03
5.6.330.0030.01014.22
5.6.320.0030.01014.12
5.6.310.0070.01014.39
5.6.300.0000.01014.52
5.6.290.0030.01014.69
5.6.280.0060.04017.67
5.6.270.0090.00614.22
5.6.260.0070.00714.30
5.6.250.0120.00314.55
5.6.240.0110.00414.29
5.6.230.0090.00314.12
5.6.220.0070.00714.09
5.6.210.0130.03817.33
5.6.200.0050.04216.25
5.6.190.0070.02816.11
5.6.180.0050.04516.32
5.6.170.0060.02816.09
5.6.160.0070.04316.14
5.6.150.0100.03316.22
5.6.140.0130.03316.18
5.6.130.0100.04016.09
5.6.120.0070.02216.26
5.6.110.0100.04016.33
5.6.100.0070.04016.36
5.6.90.0060.04616.15
5.6.80.0060.02615.80
5.6.70.0080.04315.89
5.6.60.0080.03615.82
5.6.50.0080.04215.63
5.6.40.0030.04415.91
5.6.30.0040.04415.85
5.6.20.0050.03115.84
5.6.10.0070.03815.97
5.6.00.0080.04315.91
5.5.380.0040.00710.79
5.5.370.0030.00710.93
5.5.360.0070.00711.17
5.5.350.0060.02815.73
5.5.340.0070.04014.54
5.5.330.0090.02614.46
5.5.320.0050.04014.62
5.5.310.0020.02814.39
5.5.300.0000.02914.39
5.5.290.0020.05014.52
5.5.280.0020.03514.48
5.5.270.0050.04314.40
5.5.260.0050.03514.50
5.5.250.0070.03914.42
5.5.240.0050.03614.23
5.5.230.0020.03114.15
5.5.220.0030.03014.26
5.5.210.0050.03514.15
5.5.200.0050.02014.17
5.5.190.0080.02214.21
5.5.180.0030.04014.32
5.5.170.0040.00811.32
5.5.160.0030.04514.29
5.5.150.0050.03014.24
5.5.140.0020.04314.21
5.5.130.0100.03514.30
5.5.120.0090.02314.11
5.5.110.0030.02314.15
5.5.100.0070.04314.01
5.5.90.0070.02414.00
5.5.80.0040.03714.17
5.5.70.0120.03314.21
5.5.60.0110.03714.17
5.5.50.0050.03814.20
5.5.40.0050.03814.21
5.5.30.0000.04614.21
5.5.20.0090.03014.26
5.5.10.0100.03814.06
5.5.00.0070.03814.16
5.4.450.0060.02415.29
5.4.440.0120.03615.10
5.4.430.0030.02615.11
5.4.420.0070.03315.20
5.4.410.0060.03614.99
5.4.400.0050.03814.97
5.4.390.0050.03915.03
5.4.380.0060.01814.86
5.4.370.0090.04015.05
5.4.360.0090.01814.94
5.4.350.0050.03014.96
5.4.340.0070.02215.01
5.4.330.0000.00510.96
5.4.320.0080.04014.98
5.4.310.0000.04714.85
5.4.300.0030.04615.05
5.4.290.0050.03815.05
5.4.280.0050.03514.99
5.4.270.0050.04215.11
5.4.260.0050.02314.99
5.4.250.0050.03414.98
5.4.240.0050.04215.02
5.4.230.0050.04014.90
5.4.220.0090.03714.96
5.4.210.0060.03815.11
5.4.200.0040.03014.94
5.4.190.0030.04514.87
5.4.180.0050.04214.99
5.4.170.0020.02315.03
5.4.160.0080.03814.79
5.4.150.0070.03714.96
5.4.140.0000.04413.49
5.4.130.0070.03813.63
5.4.120.0060.02713.73
5.4.110.0080.03813.75
5.4.100.0040.04013.62
5.4.90.0050.03913.53
5.4.80.0060.03113.56
5.4.70.0050.03913.70
5.4.60.0090.02013.64
5.4.50.0020.04113.73
5.4.40.0040.03913.64
5.4.30.0030.02013.63
5.4.20.0050.02813.64
5.4.10.0080.03813.64
5.4.00.0100.02513.45
5.3.290.0090.03212.62
5.3.280.0050.04212.50
5.3.270.0020.04012.66
5.3.260.0100.04012.64
5.3.250.0030.03812.64
5.3.240.0060.03812.48
5.3.230.0030.04412.58
5.3.220.0050.02312.46
5.3.210.0020.03912.44
5.3.200.0070.03812.55
5.3.190.0060.03812.48
5.3.180.0060.03612.51
5.3.170.0080.02312.59
5.3.160.0030.04112.50
5.3.150.0050.04212.46
5.3.140.0020.02412.64
5.3.130.0030.03212.52
5.3.120.0030.03412.55
5.3.110.0050.02712.62
5.3.100.0110.03012.22
5.3.90.0040.02312.36
5.3.80.0000.04012.25
5.3.70.0030.02712.21
5.3.60.0030.03812.26
5.3.50.0080.03512.25
5.3.40.0020.02312.30
5.3.30.0020.02412.03
5.3.20.0030.02012.15
5.3.10.0000.02212.04
5.3.00.0020.02111.93
5.2.170.0030.02310.65
5.2.160.0070.01710.58
5.2.150.0070.01710.58
5.2.140.0000.01810.65
5.2.130.0040.01510.55
5.2.120.0020.01610.54
5.2.110.0020.01810.55
5.2.100.0020.01910.47
5.2.90.0020.01810.54
5.2.80.0010.01810.57
5.2.70.0080.01310.54
5.2.60.0060.01810.50
5.2.50.0050.01610.48
5.2.40.0020.02010.47
5.2.30.0020.01710.49
5.2.20.0030.01710.44
5.2.10.0020.01810.43
5.2.00.0040.01310.32
5.1.60.0020.0129.96
5.1.50.0020.0159.93
5.1.40.0000.0169.99
5.1.30.0040.01310.14
5.1.20.0040.01310.08
5.1.10.0020.01610.02
5.1.00.0020.01310.00
5.0.50.0000.0169.24
5.0.40.0000.0159.18
5.0.30.0040.0139.13
5.0.20.0020.0129.12
5.0.10.0050.0089.04
5.0.00.0020.0159.07
4.4.90.0030.0088.76
4.4.80.0000.0098.76
4.4.70.0030.0098.76
4.4.60.0030.0088.76
4.4.50.0040.0078.76
4.4.40.0020.0138.76
4.4.30.0020.0108.76
4.4.20.0000.0118.76
4.4.10.0020.0078.76
4.4.00.0000.0178.76
4.3.110.0000.0098.76
4.3.100.0020.0078.76
4.3.90.0010.0088.76
4.3.80.0010.0138.76
4.3.70.0050.0058.76
4.3.60.0000.0108.76
4.3.50.0020.0098.76
4.3.40.0010.0128.76
4.3.30.0000.0088.76
4.3.20.0000.0128.76
4.3.10.0000.0098.76
4.3.00.0000.0108.76

preferences:
49.89 ms | 401 KiB | 5 Q