3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace V1 { interface Foo { public function merge(Foo $foo); } } namespace V2 { interface Foo extends \V1\Foo { } } namespace { use V2\Foo; // use V1\Foo; class FooImpl implements Foo { public function merge(Foo $foo) { // ... } } $fooImpl1 = new FooImpl; $fooImpl2 = new FooImpl; $fooImpl1->merge($fooImpl2); }

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.0060.01218.56
8.3.50.0100.00821.21
8.3.40.0110.00418.65
8.3.30.0070.00718.54
8.3.20.0080.00020.13
8.3.10.0000.00721.69
8.3.00.0080.00023.52
8.2.180.0110.00316.63
8.2.170.0070.00722.96
8.2.160.0070.00719.25
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0070.00021.05
8.2.120.0040.00426.35
8.2.110.0000.01121.00
8.2.100.0080.00317.66
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0050.00317.80
8.2.50.0030.00618.10
8.2.40.0070.00020.59
8.2.30.0000.00719.38
8.2.20.0040.00417.65
8.2.10.0040.00417.98
8.2.00.0000.00717.93
8.1.280.0140.00025.92
8.1.270.0030.00622.02
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0000.00922.64
8.1.230.0070.00317.64
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.25
8.1.190.0080.00017.23
8.1.180.0030.00518.10
8.1.170.0040.00418.53
8.1.160.0040.00422.19
8.1.150.0080.00020.52
8.1.140.0030.00519.55
8.1.130.0030.00517.64
8.1.120.0000.00717.41
8.1.110.0040.00417.35
8.1.100.0000.00717.37
8.1.90.0050.00217.38
8.1.80.0000.00717.44
8.1.70.0040.00417.36
8.1.60.0000.00817.58
8.1.50.0050.00317.47
8.1.40.0030.00517.34
8.1.30.0000.00817.54
8.1.20.0030.00617.50
8.1.10.0020.00517.43
8.1.00.0000.00817.23
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0000.00717.20
8.0.260.0030.00317.26
8.0.250.0070.00016.97
8.0.240.0030.00316.83
8.0.230.0000.00816.82
8.0.220.0030.00316.85
8.0.210.0050.00216.82
8.0.200.0000.00716.84
8.0.190.0040.00416.95
8.0.180.0000.00716.86
8.0.170.0000.00816.82
8.0.160.0000.00716.77
8.0.150.0070.00416.85
8.0.140.0030.00516.89
8.0.130.0030.00313.22
8.0.120.0020.00516.89
8.0.110.0050.00216.81
8.0.100.0000.00816.76
8.0.90.0040.00416.87
8.0.80.0060.00916.93
8.0.70.0000.00816.68
8.0.60.0030.00516.76
8.0.50.0000.00716.95
8.0.30.0100.00917.17
8.0.20.0080.01017.40
8.0.10.0040.00416.84
8.0.00.0070.01116.76
7.4.330.0000.00516.84
7.4.320.0060.00016.45
7.4.300.0000.00716.41
7.4.290.0100.00016.42
7.4.280.0070.00016.41
7.4.270.0040.00416.34
7.4.260.0030.00316.47
7.4.250.0040.00416.27
7.4.240.0020.00516.54
7.4.230.0000.00716.47
7.4.220.0160.00716.45
7.4.210.0040.01216.49
7.4.200.0030.00516.42
7.4.160.0070.00716.59
7.4.150.0060.01117.40
7.4.140.0110.01117.86
7.4.130.0120.01216.29
7.4.120.0070.00916.50
7.4.110.0000.02216.55
7.4.100.0120.00316.38
7.4.90.0130.00416.56
7.4.80.0070.01019.39
7.4.70.0070.01016.59
7.4.60.0130.00316.51
7.4.50.0000.01616.39
7.4.40.0200.00316.42
7.4.30.0130.00316.49
7.4.00.0030.01115.09
7.3.330.0060.00013.25
7.3.320.0050.00013.08
7.3.310.0050.00316.20
7.3.300.0030.00316.25
7.3.290.0070.01116.22
7.3.280.0070.00816.21
7.3.270.0120.00617.40
7.3.260.0180.00616.60
7.3.240.0050.01216.45
7.3.230.0090.00916.43
7.3.210.0040.01216.29
7.3.200.0030.01319.39
7.3.190.0090.01316.48
7.3.180.0060.01216.12
7.3.170.0120.00916.32
7.3.160.0120.00316.50
7.2.330.0150.00916.49
7.2.320.0080.01116.50
7.2.310.0030.01616.71
7.2.300.0080.00816.33
7.2.290.0090.00916.38
7.2.60.0030.00916.93
7.2.00.0030.00719.05
7.1.200.0070.00715.60
7.1.100.0040.00717.75
7.1.70.0040.00416.90
7.1.60.0130.01019.28
7.1.50.0070.00716.88
7.1.00.0030.07722.31
7.0.200.0030.00616.64
7.0.100.0030.07720.02
7.0.90.0230.07319.89
7.0.80.0170.07319.96
7.0.70.0130.06719.92
7.0.60.0170.06719.92
7.0.50.0030.08020.31
7.0.40.0030.07020.12
7.0.30.0130.07720.12
7.0.20.0130.07720.05
7.0.10.0070.06720.14
7.0.00.0100.07720.14
5.6.280.0100.06021.02
5.6.250.0070.07720.82
5.6.240.0030.05320.69
5.6.230.0170.04020.75
5.6.220.0070.08020.50
5.6.210.0070.08320.60
5.6.200.0030.08321.02
5.6.190.0070.07321.18
5.6.180.0000.08321.11
5.6.170.0070.08021.03
5.6.160.0100.04021.14
5.6.150.0030.04721.18
5.6.140.0000.08720.95
5.6.130.0030.08321.04
5.6.120.0100.08321.06
5.6.110.0130.08021.02
5.6.100.0070.08320.93
5.6.90.0200.07321.12
5.6.80.0030.08020.50
5.6.70.0030.05720.38
5.6.60.0170.04320.37
5.6.50.0070.07320.53
5.6.40.0170.06720.46
5.6.30.0070.08020.42
5.6.20.0030.08020.43
5.6.10.0070.07720.29
5.6.00.0130.07320.37
5.5.380.0070.05720.52
5.5.370.0100.07720.36
5.5.360.0070.08020.35
5.5.350.0130.07320.38
5.5.340.0100.07720.92
5.5.330.0130.07020.88
5.5.320.0070.08720.92
5.5.310.0170.07720.76
5.5.300.0130.08020.93
5.5.290.0070.08020.86
5.5.280.0130.08020.80
5.5.270.0130.08020.89
5.5.260.0200.07020.83
5.5.250.0030.08320.45
5.5.240.0100.07020.27
5.5.230.0100.07720.30
5.5.220.0100.07020.25
5.5.210.0200.06719.98
5.5.200.0070.07020.26
5.5.190.0130.07020.13
5.5.180.0030.08320.12
5.5.160.0130.07020.19
5.5.150.0100.07020.22
5.5.140.0030.08019.99
5.5.130.0130.04720.15
5.5.120.0030.04720.27
5.5.110.0000.08720.21
5.5.100.0130.06020.13
5.5.90.0030.08320.16
5.5.80.0100.07720.10
5.5.70.0030.08320.00
5.5.60.0100.07020.16
5.5.50.0030.08020.16
5.5.40.0030.08020.15
5.5.30.0100.08020.14
5.5.20.0030.07320.06
5.5.10.0130.07020.04
5.5.00.0130.06720.01

preferences:
47.22 ms | 401 KiB | 5 Q