3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function bar($a, array $b); } interface Bar extends Foo { public function bar($a, array $b, $c = NULL); } class MyFoo implements Foo { public function bar($a, array $b, $c = NULL) { } } class MyBar implements Bar { public function bar($a, array $b, $c = NULL) { } } class MyExtendedBar implements Bar { public function bar($a, array $b, $c = NULL, $d = '') { } } $foo = new MyExtendedBar;

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.0140.00718.55
8.3.50.0120.00318.10
8.3.40.0110.00318.71
8.3.30.0030.01218.77
8.3.20.0070.00020.34
8.3.10.0000.00821.90
8.3.00.0000.00819.25
8.2.180.0100.00716.63
8.2.170.0060.00922.96
8.2.160.0030.01020.57
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0080.00019.54
8.2.110.0100.00019.39
8.2.100.0080.00317.63
8.2.90.0000.00819.09
8.2.80.0050.00317.97
8.2.70.0030.00517.62
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00919.95
8.2.30.0040.00417.93
8.2.20.0050.00317.59
8.2.10.0040.00418.11
8.2.00.0040.00417.73
8.1.280.0100.01025.92
8.1.270.0030.00620.73
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0070.00317.42
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0060.00317.11
8.1.180.0040.00418.10
8.1.170.0030.00720.39
8.1.160.0030.00322.05
8.1.150.0050.00218.76
8.1.140.0030.00617.48
8.1.130.0000.00717.82
8.1.120.0030.00317.36
8.1.110.0000.00717.43
8.1.100.0040.00417.46
8.1.90.0000.00817.48
8.1.80.0040.00417.45
8.1.70.0030.00317.34
8.1.60.0060.00317.59
8.1.50.0040.00417.56
8.1.40.0000.00717.50
8.1.30.0000.00817.63
8.1.20.0040.00417.58
8.1.10.0030.00617.32
8.1.00.0040.00417.35
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0080.00018.39
8.0.270.0030.00317.27
8.0.260.0070.00017.13
8.0.250.0030.00316.89
8.0.240.0030.00316.87
8.0.230.0030.00316.86
8.0.220.0040.00416.87
8.0.210.0000.00716.96
8.0.200.0030.00316.77
8.0.190.0000.00716.99
8.0.180.0040.00416.90
8.0.170.0050.00216.80
8.0.160.0000.00716.94
8.0.150.0040.00416.89
8.0.140.0030.00416.78
8.0.130.0000.00813.32
8.0.120.0040.00416.84
8.0.110.0030.00316.73
8.0.100.0050.00316.86
8.0.90.0040.00416.93
8.0.80.0040.01716.93
8.0.70.0040.00416.94
8.0.60.0000.00716.76
8.0.50.0040.00416.90
8.0.30.0140.00716.86
8.0.20.0130.00817.40
8.0.10.0000.00717.07
8.0.00.0090.00716.78
7.4.330.0020.00215.10
7.4.320.0000.00716.40
7.4.300.0000.00616.41
7.4.290.0040.00416.58
7.4.280.0040.00416.59
7.4.270.0030.00316.53
7.4.260.0000.00716.53
7.4.250.0090.00016.54
7.4.240.0020.00516.65
7.4.230.0070.00016.25
7.4.220.0160.00316.45
7.4.210.0050.01016.47
7.4.200.0000.00816.41
7.4.160.0080.00816.43
7.4.150.0070.01017.40
7.4.140.0090.01117.86
7.4.130.0110.00816.62
7.4.120.0080.01216.44
7.4.110.0100.00716.37
7.4.100.0070.01016.39
7.4.90.0070.01016.46
7.4.80.0170.00319.39
7.4.70.0070.01016.54
7.4.60.0100.01016.45
7.4.50.0030.00616.47
7.4.40.0100.00716.45
7.4.30.0080.00816.42
7.4.00.0040.01114.80
7.3.330.0050.00013.05
7.3.320.0040.00813.06
7.3.310.0000.00716.09
7.3.300.0070.00016.05
7.3.290.0070.00016.08
7.3.280.0090.00816.20
7.3.270.0130.00917.40
7.3.260.0100.01016.47
7.3.250.0120.00516.45
7.3.240.0140.00416.09
7.3.230.0140.00616.54
7.3.210.0080.00816.29
7.3.200.0230.00019.39
7.3.190.0070.01416.26
7.3.180.0130.00316.46
7.3.170.0090.00916.38
7.3.160.0090.01216.29
7.3.10.0000.01316.32
7.3.00.0080.00316.21
7.2.330.0110.01116.72
7.2.320.0000.01716.53
7.2.310.0090.00916.47
7.2.300.0060.01916.61
7.2.290.0050.01416.64
7.2.130.0070.00717.06
7.2.120.0000.01416.87
7.2.110.0070.00716.82
7.2.100.0060.00616.82
7.2.90.0000.01317.02
7.2.80.0060.00316.82
7.2.70.0070.01016.51
7.2.60.0030.01316.89
7.2.50.0030.00916.72
7.2.40.0080.00417.00
7.2.30.0030.00916.72
7.2.20.0070.00716.72
7.2.10.0060.00617.07
7.2.00.0000.00917.98
7.1.250.0060.00615.70
7.1.100.0000.01117.77
7.1.70.0090.00616.82
7.1.60.0070.01819.50
7.1.50.0040.01516.91
7.1.00.0000.08022.36
7.0.200.4130.01014.85
7.0.140.0000.07322.21
7.0.60.0100.03319.83
7.0.50.0100.07717.88
7.0.40.0030.08320.27
7.0.30.0200.04720.07
7.0.20.0270.04020.24
7.0.10.0030.08720.26
7.0.00.0100.07720.32
5.6.280.0100.06320.87
5.6.210.0130.08020.66
5.6.200.0100.07718.19
5.6.190.0030.04720.61
5.6.180.0130.05720.58
5.6.170.0270.06320.46
5.6.160.0170.07320.52
5.6.150.0030.04318.25
5.6.140.0130.06018.11
5.6.130.0030.04318.27
5.6.120.0000.09021.00
5.6.110.0100.07321.08
5.6.100.0200.07321.09
5.6.90.0130.07720.98
5.6.80.0070.04020.49
5.5.350.0070.07720.50
5.5.340.0200.04317.96
5.5.330.0070.05020.43
5.5.320.0170.07720.52
5.5.310.0300.03020.42
5.5.300.0100.06317.95
5.5.290.0030.04017.99
5.5.280.0100.07720.79
5.5.270.0100.03720.81
5.5.260.0100.08020.88
5.5.250.0070.05020.70
5.5.240.0300.06720.30
5.4.450.1600.03019.19
5.4.440.1670.03719.53
5.4.430.1770.05019.35
5.4.420.0030.04319.34
5.4.410.0070.04319.10
5.4.400.0730.05719.00
5.4.390.1630.03719.03
5.4.380.1630.04319.32
5.4.370.1670.04319.31
5.4.360.1630.04719.02
5.4.350.1730.04318.75
5.4.340.1630.04719.32
5.4.320.1700.04019.22
5.4.310.1770.03319.07
5.4.300.1800.04018.86
5.4.290.1630.04719.07
5.4.280.1770.03719.16
5.4.270.0100.03019.31
5.4.260.0000.04019.16
5.4.250.0700.03319.16
5.4.240.1870.03318.87
5.4.230.1800.04318.78
5.4.220.1770.04319.04
5.4.210.1770.04018.85
5.4.200.1730.04718.71
5.4.190.1730.04718.98
5.4.180.1700.04318.98
5.4.170.1500.03718.88
5.4.160.1700.05318.86
5.4.150.1770.04719.14
5.4.140.0070.03316.56
5.4.130.0030.05316.53
5.4.120.1370.03316.50
5.4.110.1030.03316.59
5.4.100.1970.03716.61
5.4.90.1670.03316.26
5.4.80.1530.04016.59
5.4.70.1600.03316.60
5.4.60.2100.03016.26
5.4.50.1570.03316.53
5.4.40.1670.02716.34
5.4.30.1530.03716.38
5.4.20.1900.03316.51
5.4.10.1570.03316.51
5.4.00.1600.03315.73
5.3.290.0600.03714.79
5.3.280.0100.05714.53
5.3.270.0000.05714.62
5.3.260.1470.04714.53
5.3.250.2170.02714.52
5.3.240.1600.03714.71
5.3.230.1600.03314.60
5.3.220.1600.03314.69
5.3.210.1800.04314.63
5.3.200.1770.04314.69
5.3.190.1870.03714.48
5.3.180.1670.03314.59
5.3.170.1700.03714.57
5.3.160.1700.03714.47
5.3.150.1600.03314.71
5.3.140.1630.03314.62
5.3.130.1600.03014.78
5.3.120.1200.04014.53
5.3.110.1100.04014.54
5.3.100.1330.03314.20
5.3.90.1100.04314.18
5.3.80.1100.03314.11
5.3.70.1230.04013.96
5.3.60.0070.03313.92
5.3.50.0070.03713.88
5.3.40.0430.04314.02
5.3.30.1030.04013.84
5.3.20.1170.04013.71
5.3.10.1200.03313.59
5.3.00.1070.04313.73
5.2.170.0130.03311.06
5.2.160.0100.03011.17
5.2.150.0100.03011.07
5.2.140.0100.04011.24
5.2.130.0200.03711.03
5.2.120.0100.03311.05
5.2.110.0130.04011.02
5.2.100.0130.03011.20
5.2.90.0130.02711.04
5.2.80.0130.03011.02
5.2.70.0200.02311.09
5.2.60.0200.02311.11
5.2.50.0130.03011.11
5.2.40.0130.03011.06
5.2.30.0100.03710.90
5.2.20.0130.03010.89
5.2.10.0130.02711.09
5.2.00.0100.03010.84
5.1.60.0130.0279.94
5.1.50.0200.03710.14
5.1.40.0200.0209.97
5.1.30.0100.03010.36
5.1.20.0170.03010.37
5.1.10.0130.0279.98
5.1.00.0130.02310.16
5.0.50.0070.0278.55
5.0.40.0070.0238.54
5.0.30.0100.0278.37
5.0.20.0030.0208.21
5.0.10.0070.0238.16
5.0.00.0100.0308.39
4.4.90.0070.0177.62
4.4.80.0030.0177.62
4.4.70.0030.0177.62
4.4.60.0070.0177.62
4.4.50.0030.0207.62
4.4.40.0030.0277.62
4.4.30.0030.0177.62
4.4.20.0000.0237.62
4.4.10.0030.0207.62
4.4.00.0030.0277.62
4.3.110.0070.0177.62
4.3.100.0070.0137.62
4.3.90.0070.0137.62
4.3.80.0000.0277.62
4.3.70.0000.0137.62
4.3.60.0030.0177.62
4.3.50.0100.0237.62
4.3.40.0070.0277.62
4.3.30.0000.0177.62
4.3.20.0000.0177.62
4.3.10.0030.0137.62
4.3.00.0030.0177.62

preferences:
58.42 ms | 400 KiB | 5 Q