3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public function selfRef(Test $other); } class TestImpl implements Test { public function selfRef(Test $other) { echo var_export($other, true) . PHP_EOL; } public function nonContractSelfRef(self $other) { echo var_export($other, true) . PHP_EOL; } } $a = new TestImpl(); $b = new TestImpl(); $a->selfRef($b);

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.01018.30
8.3.50.0140.01020.99
8.3.40.0070.00718.47
8.3.30.0130.00719.09
8.3.20.0040.00420.21
8.3.10.0050.00323.66
8.3.00.0060.00319.25
8.2.180.0110.00716.50
8.2.170.0100.00322.96
8.2.160.0110.00420.39
8.2.150.0080.00024.18
8.2.140.0090.00624.66
8.2.130.0040.00426.16
8.2.120.0070.00022.10
8.2.110.0000.01020.57
8.2.100.0090.00317.78
8.2.90.0030.00619.23
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0050.00317.93
8.2.50.0000.00818.10
8.2.40.0030.00620.25
8.2.30.0070.00318.06
8.2.20.0070.00017.57
8.2.10.0040.00418.19
8.2.00.0000.00817.69
8.1.280.0060.00925.92
8.1.270.0090.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00420.80
8.1.230.0040.00819.04
8.1.220.0050.00317.77
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0030.00617.10
8.1.180.0030.00518.10
8.1.170.0000.00918.47
8.1.160.0040.00419.02
8.1.150.0050.00218.79
8.1.140.0000.00717.46
8.1.130.0030.00317.75
8.1.120.0080.00017.44
8.1.110.0030.00517.54
8.1.100.0040.00417.48
8.1.90.0050.00217.49
8.1.80.0040.00317.46
8.1.70.0000.00817.35
8.1.60.0050.00317.62
8.1.50.0000.00817.55
8.1.40.0070.00017.41
8.1.30.0040.00417.50
8.1.20.0000.00817.58
8.1.10.0000.00817.66
8.1.00.0080.00017.52
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.37
8.0.270.0000.00817.16
8.0.260.0000.00617.26
8.0.250.0000.00717.07
8.0.240.0000.00617.01
8.0.230.0070.00016.88
8.0.220.0050.00216.96
8.0.210.0070.00016.98
8.0.200.0030.00316.97
8.0.190.0000.00716.97
8.0.180.0000.00716.88
8.0.170.0000.00816.97
8.0.160.0070.00417.01
8.0.150.0000.00716.95
8.0.140.0030.00516.81
8.0.130.0030.00313.36
8.0.120.0030.00516.92
8.0.110.0080.00016.87
8.0.100.0060.00316.84
8.0.90.0040.00317.02
8.0.80.0090.00616.95
8.0.70.0000.00816.96
8.0.60.0050.00316.84
8.0.50.0000.00816.77
8.0.30.0120.01116.91
8.0.20.0060.01217.40
8.0.10.0000.00816.97
8.0.00.0120.00516.67
7.4.330.0050.00015.00
7.4.320.0030.00316.62
7.4.300.0060.00016.53
7.4.290.0030.00516.61
7.4.280.0030.00516.41
7.4.270.0030.00316.59
7.4.260.0030.00316.60
7.4.250.0080.00016.55
7.4.240.0040.00316.58
7.4.230.0030.00316.45
7.4.220.0120.01016.63
7.4.210.0070.00716.70
7.4.200.0030.00416.50
7.4.160.0120.00316.51
7.4.150.0130.00617.40
7.4.140.0080.00917.86
7.4.130.0080.01016.51
7.4.120.0080.01016.56
7.4.110.0090.00916.46
7.4.100.0140.00316.52
7.4.90.0140.00416.63
7.4.80.0100.00719.39
7.4.70.0040.01316.42
7.4.60.0060.01016.50
7.4.50.0000.00916.23
7.4.40.0090.01216.50
7.4.30.0030.01416.47
7.4.00.0000.00714.79
7.3.330.0060.00013.32
7.3.320.0020.00213.32
7.3.310.0070.00016.39
7.3.300.0030.00316.18
7.3.290.0160.00016.26
7.3.280.0090.00916.30
7.3.270.0120.00617.40
7.3.260.0100.00616.20
7.3.250.0110.01016.51
7.3.240.0140.00416.46
7.3.230.0100.01016.46
7.3.210.0120.00616.60
7.3.200.0090.00919.39
7.3.190.0120.00616.63
7.3.180.0110.01116.34
7.3.170.0100.00716.50
7.3.160.0060.00916.31
7.3.10.0000.01116.39
7.3.00.0110.00416.50
7.2.330.0060.01216.78
7.2.320.0140.00316.72
7.2.310.0190.00016.42
7.2.300.0100.00716.74
7.2.290.0060.01216.58
7.2.130.0040.00716.71
7.2.120.0040.00416.92
7.2.110.0030.01016.94
7.2.100.0030.00516.64
7.2.90.0100.00316.71
7.2.80.0100.00316.59
7.2.70.0030.00616.63
7.2.60.0050.00716.77
7.2.50.0030.00616.91
7.2.40.0030.01016.91
7.2.30.0030.00716.94
7.2.20.0070.00716.73
7.2.10.0000.01116.87
7.2.00.0060.00617.12
7.1.250.0060.00315.50
7.1.200.0090.00315.79
7.1.100.0150.01215.88
7.1.70.0000.00817.05
7.1.60.0090.01519.32
7.1.50.0170.01416.68
7.1.00.0100.07022.45
7.0.200.0070.01016.43
7.0.140.0030.07322.19
7.0.60.0130.06019.91
7.0.50.0070.03717.87
7.0.40.0170.07320.24
7.0.30.0430.05720.11
7.0.20.0230.08720.30
7.0.10.0070.05020.27
7.0.00.0030.08720.32
5.6.280.0070.07021.02
5.6.210.0030.04020.63
5.6.200.0130.07018.29
5.6.190.0000.06020.61
5.6.180.0370.04320.43
5.6.170.0400.04020.48
5.6.160.0070.06720.54
5.6.150.0070.08018.19
5.6.140.0100.03318.18
5.6.130.0170.07318.26
5.6.120.0070.05020.94
5.6.110.0130.06321.00
5.6.100.0200.07321.14
5.6.90.0030.06321.02
5.6.80.0070.08020.41
5.5.350.0230.07320.31
5.5.340.0070.08017.98
5.5.330.0070.08020.29
5.5.320.0470.06720.30
5.5.310.0230.06320.34
5.5.300.0000.05018.09
5.5.290.0070.04017.96
5.5.280.0030.05720.97
5.5.270.0100.08020.75
5.5.260.0070.08720.80
5.5.250.0070.05320.67
5.5.240.0070.03720.07
5.4.450.4330.03719.48
5.4.440.0000.08719.48
5.4.430.1670.07019.43
5.4.420.4070.04019.43
5.4.410.4600.03319.26
5.4.400.3800.03319.16
5.4.390.0530.03719.06
5.4.380.2700.03719.11
5.4.370.3370.03018.89
5.4.360.3770.03719.11
5.4.350.3900.04718.95
5.4.340.4030.04719.07
5.4.320.3500.04318.96
5.4.310.3600.03319.17
5.4.300.4230.03719.16
5.4.290.4530.04019.15
5.4.280.4070.04319.06
5.4.270.4570.03019.06
5.4.260.4570.03718.89
5.4.250.4330.04018.98
5.4.240.5530.03319.12
5.4.230.4570.04319.12
5.4.220.4630.03319.06
5.4.210.4700.03019.14
5.4.200.4700.03318.89
5.4.190.4330.04019.15
5.4.180.4630.03318.94
5.4.170.3600.03719.05
5.4.160.3870.03719.09
5.4.150.4130.03718.96
5.4.140.4400.04316.35
5.4.130.3800.03316.34
5.4.120.3800.03016.54
5.4.110.4230.03716.55
5.4.100.4100.03716.46
5.4.90.4670.04316.47
5.4.80.3930.03316.48
5.4.70.4630.04016.16
5.4.60.4630.03316.19
5.4.50.4630.03716.49
5.4.40.4530.03716.36
5.4.30.4930.04016.19
5.4.20.4330.04016.47
5.4.10.4130.04016.57
5.4.00.3870.04015.98
5.3.290.4000.03714.72
5.3.280.4200.03314.63
5.3.270.3600.03714.66
5.3.260.4170.02714.63
5.3.250.3570.04014.62
5.3.240.4130.03314.49
5.3.230.4230.03714.61
5.3.220.3400.02714.48
5.3.210.4430.03314.62
5.3.200.4430.04714.48
5.3.190.3900.04714.56
5.3.180.3830.04014.57
5.3.170.4630.04314.48
5.3.160.4600.04014.57
5.3.150.3970.03714.61
5.3.140.4070.03314.59
5.3.130.4770.04314.60
5.3.120.4570.03014.44
5.3.110.4000.04014.62
5.3.100.4070.03313.93
5.3.90.3300.04714.05
5.3.80.4030.02714.02
5.3.70.3700.04014.07
5.3.60.3670.02714.00
5.3.50.4300.03713.99
5.3.40.3870.03713.94
5.3.30.4200.04313.80
5.3.20.4070.03313.66
5.3.10.3730.03713.72
5.3.00.3630.04313.68
5.2.170.3400.02711.33
5.2.160.3400.03011.11
5.2.150.3100.03711.12
5.2.140.3870.03711.12
5.2.130.3370.03011.19
5.2.120.3130.02711.27
5.2.110.3470.02311.28
5.2.100.3970.03011.08
5.2.90.3800.02711.04
5.2.80.3570.03011.27
5.2.70.3730.03311.15
5.2.60.3530.03011.11
5.2.50.3200.03711.19
5.2.40.2470.03011.06
5.2.30.2270.02710.93
5.2.20.2500.02310.96
5.2.10.2700.03010.92
5.2.00.2730.03310.64
5.1.60.0030.02310.07
5.1.50.0030.02310.15
5.1.40.0030.0279.94
5.1.30.0030.03010.24
5.1.20.1900.02310.51
5.1.10.2430.02710.10
5.1.00.2170.02710.04
5.0.50.1170.0238.55
5.0.40.1030.0238.39
5.0.30.1230.0308.22
5.0.20.1200.0208.12
5.0.10.0930.0178.23
5.0.00.0970.0278.16
4.4.90.1670.0136.24
4.4.80.1670.0236.24
4.4.70.1000.0176.24
4.4.60.1030.0176.24
4.4.50.1230.0176.24
4.4.40.0030.0206.24
4.4.30.0070.0106.24
4.4.20.1300.0106.24
4.4.10.1270.0106.24
4.4.00.1200.0236.24
4.3.110.1230.0106.24
4.3.100.1230.0106.24
4.3.90.1230.0176.24
4.3.80.1270.0236.24
4.3.70.1270.0106.24
4.3.60.1170.0176.24
4.3.50.1330.0106.24
4.3.40.1630.0276.24
4.3.30.0930.0206.24
4.3.20.0770.0136.24
4.3.10.1000.0206.24
4.3.00.1030.0236.24

preferences:
46.64 ms | 401 KiB | 5 Q