3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface RegularInterface {} interface BetterInterface extends RegularInterface {} class Thing implements BetterInterface { } class RegularClass { public static function doSomething(RegularInterface $thing) { echo 'hello'; } } class BetterClass extends RegularClass { public static function doSomething(BetterInterface $thing) { echo 'hello'; } } $thing = new Thing(); BetterClass::doSomething($thing);

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.0070.01116.63
8.3.50.0140.00417.32
8.3.40.0120.00618.50
8.3.30.0170.00018.71
8.3.20.0090.00618.69
8.3.10.0060.00320.15
8.3.00.0080.00019.25
8.2.180.0070.01116.32
8.2.170.0060.00922.96
8.2.160.0040.01218.96
8.2.150.0110.00425.66
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00020.35
8.2.110.0030.00720.94
8.2.100.0080.00417.55
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0050.00317.38
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0000.00818.09
8.2.30.0040.00418.00
8.2.20.0080.00019.33
8.2.10.0020.00517.61
8.2.00.0040.00717.51
8.1.280.0100.01025.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.01122.53
8.1.230.0040.00717.45
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0060.00317.10
8.1.190.0040.00417.50
8.1.180.0070.00718.10
8.1.170.0080.00018.82
8.1.160.0080.00018.86
8.1.150.0070.00018.50
8.1.140.0050.00317.39
8.1.130.0070.00017.88
8.1.120.0050.00217.29
8.1.110.0020.00517.28
8.1.100.0080.00017.30
8.1.90.0070.00017.34
8.1.80.0000.00717.27
8.1.70.0070.00017.27
8.1.60.0040.00417.51
8.1.50.0040.00417.41
8.1.40.0000.00717.50
8.1.30.0040.00417.46
8.1.20.0000.00717.58
8.1.10.0000.00717.24
8.1.00.0000.00817.20
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0000.00718.32
8.0.270.0070.00017.18
8.0.260.0000.00616.71
8.0.250.0080.00016.96
8.0.240.0040.00416.86
8.0.230.0020.00516.86
8.0.220.0000.00716.73
8.0.210.0030.00416.89
8.0.200.0060.00016.79
8.0.190.0060.00316.83
8.0.180.0040.00416.81
8.0.170.0060.00316.74
8.0.160.0000.00816.95
8.0.150.0040.00416.71
8.0.140.0000.00816.52
8.0.130.0030.00313.30
8.0.120.0040.00416.80
8.0.110.0030.00316.75
8.0.100.0040.00416.88
8.0.90.0000.00716.66
8.0.80.0070.01416.88
8.0.70.0040.00416.89
8.0.60.0000.00716.91
8.0.50.0070.00016.75
8.0.30.0000.01717.11
8.0.20.0040.01517.07
8.0.10.0020.00516.92
8.0.00.0100.01016.71
7.4.330.0000.00513.01
7.4.320.0030.00316.53
7.4.300.0000.00616.50
7.4.290.0030.00316.52
7.4.280.0070.00016.54
7.4.270.0000.00616.59
7.4.260.0030.00313.27
7.4.250.0030.00516.60
7.4.240.0040.00416.60
7.4.230.0030.00516.60
7.4.220.0050.01516.61
7.4.210.0080.00616.63
7.4.200.0070.00016.68
7.4.190.0070.00016.36
7.4.160.0110.01116.55
7.4.150.0100.00716.58
7.4.140.0170.00716.50
7.4.130.0030.01316.57
7.4.120.0100.00716.58
7.4.110.0100.00716.65
7.4.100.0100.00716.48
7.4.90.0090.00916.40
7.4.80.0110.00716.43
7.4.70.0000.01616.61
7.4.60.0160.00016.62
7.4.50.0020.00216.33
7.4.40.0000.01216.42
7.4.30.0130.00316.42
7.4.00.0030.01314.90
7.3.330.0060.00013.31
7.3.320.0000.00513.36
7.3.310.0030.00316.25
7.3.300.0000.00716.32
7.3.290.0080.00816.30
7.3.280.0070.00816.29
7.3.270.0140.00416.53
7.3.260.0090.01216.49
7.3.250.0150.00616.46
7.3.240.0100.00616.33
7.3.230.0130.00716.38
7.3.210.0060.01316.29
7.3.200.0110.01119.39
7.3.190.0130.00616.36
7.3.180.0070.01016.17
7.3.170.0060.01016.33
7.3.160.0080.00816.45
7.3.120.0030.01214.53
7.2.330.0180.00016.63
7.2.320.0130.00316.71
7.2.310.0070.01116.59
7.2.300.0090.00916.57
7.2.290.0140.01016.80
7.2.60.0090.00616.92
7.2.00.0090.00319.15
7.1.200.0070.00715.67
7.1.100.0040.00717.75
7.1.70.0100.00616.87
7.1.60.0090.01519.17
7.1.50.0120.00916.86
7.1.00.0000.06322.51
7.0.200.0190.00314.79
7.0.140.0070.07022.08
7.0.120.0000.07722.25
7.0.110.0030.08019.96
7.0.100.0070.08019.88
7.0.90.0100.08020.01
7.0.80.0130.06720.02
7.0.70.0100.08019.92
7.0.60.0130.08320.04
7.0.50.0070.06319.95
7.0.40.0200.03319.70
7.0.30.0070.07319.71
7.0.20.0170.07019.88
7.0.10.0100.07019.81
7.0.00.0200.06719.74
5.6.280.0030.07321.00
5.6.260.0200.06720.52
5.6.250.0030.08720.70
5.6.240.0070.08320.64
5.6.230.0100.08020.56
5.6.220.0000.07720.71
5.6.210.0100.07720.71
5.6.200.0030.08320.64
5.6.190.0070.07720.65
5.6.180.0170.07720.49
5.6.170.0100.07720.68
5.6.160.0130.07020.47
5.6.150.0030.08320.57
5.6.140.0030.09020.65
5.6.130.0030.08020.55
5.6.120.0100.08320.61
5.6.110.0100.07320.56
5.6.100.0070.08020.55
5.6.90.0030.07020.67
5.6.80.0130.07320.04
5.6.70.0030.08320.04
5.6.60.0070.07720.03
5.6.50.0070.07720.25
5.6.40.0100.07020.00
5.6.30.0100.07720.00
5.6.20.0070.07319.96
5.6.10.0130.06319.98
5.6.00.0070.07720.22
5.5.380.0000.08717.48
5.5.370.0100.07317.51
5.5.360.0100.04317.69
5.5.350.0200.07017.67
5.5.340.0030.07317.96
5.5.330.0130.04318.13
5.5.320.0000.08318.23
5.5.310.0130.07018.22
5.5.300.0200.06718.05
5.5.290.0100.07017.96
5.5.280.0070.08717.93
5.5.270.0070.08018.07
5.5.260.0100.07717.91
5.5.250.0100.08017.65
5.5.240.0000.04317.62
5.5.230.0030.08717.64
5.5.220.0000.08317.63
5.5.210.0070.07317.31
5.5.200.0170.04317.45
5.5.190.0070.07317.28
5.5.180.0070.07717.60
5.5.160.0070.07717.29
5.5.150.0100.05317.50
5.5.140.0070.05017.42
5.5.130.0070.06717.50
5.5.120.0030.04717.45
5.5.110.0030.07717.18
5.5.100.0170.06017.36
5.5.90.0100.07717.38
5.5.80.0100.06317.32
5.5.70.0030.07017.46
5.5.60.0070.07017.48
5.5.50.0030.04717.16
5.5.40.0130.06717.46
5.5.30.0030.08017.07
5.5.20.0000.03717.07
5.5.10.0030.05317.31
5.5.00.0070.03317.16
5.4.450.0170.07719.54
5.4.440.0100.08019.64
5.4.430.0070.08019.31
5.4.420.0170.06319.57
5.4.410.0000.08319.20
5.4.400.0070.07319.04
5.4.390.0130.07018.98
5.4.380.0070.07319.18
5.4.370.0030.04319.06
5.4.360.0070.07319.20
5.4.350.0100.06719.23
5.4.340.0100.07019.01
5.4.320.0100.06318.98
5.4.310.0100.07019.18
5.4.300.0100.07318.97
5.4.290.0130.07319.33
5.4.280.0030.04718.99
5.4.270.0030.07719.27
5.4.260.0070.08019.09
5.4.250.0070.07019.22
5.4.240.0070.07319.02
5.4.230.0070.04718.98
5.4.220.0100.04019.18
5.4.210.0100.07019.31
5.4.200.0070.07019.03
5.4.190.0130.07019.16
5.4.180.0030.06718.95
5.4.170.0070.07319.23
5.4.160.0100.04719.22
5.4.150.0000.03319.29
5.4.140.0000.04016.61
5.4.130.0030.03716.40
5.4.120.0030.03316.38
5.4.110.0000.04016.65
5.4.100.0030.04716.55
5.4.90.0070.03016.53
5.4.80.0000.04316.61
5.4.70.0000.04016.54
5.4.60.0070.03316.52
5.4.50.0070.07016.54
5.4.40.0030.03716.44
5.4.30.0030.03716.33
5.4.20.0130.02716.52
5.4.10.0030.03316.44
5.4.00.0030.03315.88
5.3.290.0100.07014.69
5.3.280.0030.06014.62
5.3.270.0030.07714.70
5.3.260.0100.05314.75
5.3.250.0100.02714.59
5.3.240.0070.03314.66
5.3.230.0030.03714.68
5.3.220.0000.04014.71
5.3.210.0030.03714.80
5.3.200.0030.05714.58
5.3.190.0000.03314.58
5.3.180.0070.03314.54
5.3.170.0000.05014.55
5.3.160.0000.03714.43
5.3.150.0030.03714.65
5.3.140.0070.05014.55
5.3.130.0030.03714.51
5.3.120.0000.04014.57
5.3.110.0000.04014.56
5.3.100.0030.03313.91
5.3.90.0000.03714.06
5.3.80.0000.04014.09
5.3.70.0000.04013.99
5.3.60.0000.04014.00
5.3.50.0070.03313.99
5.3.40.0030.03314.09
5.3.30.0030.03713.91
5.3.20.0030.03313.71
5.3.10.0100.03713.68
5.3.00.0000.06713.64
5.2.170.0030.03713.02
5.2.160.0030.02713.02
5.2.150.0070.02713.02
5.2.140.0000.03013.02
5.2.130.0000.03013.02
5.2.120.0030.05313.02
5.2.110.0070.05313.02
5.2.100.0000.05313.02
5.2.90.0000.03013.02
5.2.80.0100.02313.02
5.2.70.0030.06013.02
5.2.60.0030.02713.02
5.2.50.0000.03013.02
5.2.40.0000.02713.02
5.2.30.0030.03313.02
5.2.20.0000.04013.02
5.2.10.0070.02013.02
5.2.00.0000.03013.02
5.1.60.0030.04013.02
5.1.50.0030.02013.02
5.1.40.0070.03013.02
5.1.30.0030.02313.02
5.1.20.0000.02713.02
5.1.10.0030.02713.02
5.1.00.0030.02313.02
5.0.50.0000.02013.02
5.0.40.0030.03713.02
5.0.30.0000.03713.02
5.0.20.0070.01313.02
5.0.10.0000.02713.02
5.0.00.0000.03313.02
4.4.90.0070.00713.02
4.4.80.0030.01313.02
4.4.70.0000.01313.02
4.4.60.0030.01313.02
4.4.50.0000.01713.02
4.4.40.0000.02313.02
4.4.30.0030.01013.02
4.4.20.0000.01313.02
4.4.10.0000.02013.02
4.4.00.0000.03313.02
4.3.110.0030.01713.02
4.3.100.0000.01713.02
4.3.90.0000.01313.02
4.3.80.0000.02313.02
4.3.70.0000.02013.02
4.3.60.0000.01713.02
4.3.50.0130.02313.02
4.3.40.0000.02313.02
4.3.30.0000.02013.02
4.3.20.0030.02713.02
4.3.10.0000.04013.02
4.3.00.0000.03713.02

preferences:
60.7 ms | 401 KiB | 5 Q