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; } } class DerivedTestImpl extends TestImpl { } $a = new TestImpl(); $b = new DerivedTestImpl(); $a->nonContractSelfRef($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.0030.01716.50
8.3.50.0140.00520.99
8.3.40.0000.01418.54
8.3.30.0030.01019.01
8.3.20.0070.00020.35
8.3.10.0040.00423.66
8.3.00.0080.00019.13
8.2.180.0120.00616.63
8.2.170.0140.00022.96
8.2.160.0100.00720.57
8.2.150.0040.00724.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0050.00222.00
8.2.110.0030.00620.95
8.2.100.0040.00818.86
8.2.90.0030.00517.63
8.2.80.0080.00017.97
8.2.70.0000.00917.80
8.2.60.0030.00618.05
8.2.50.0030.00618.10
8.2.40.0040.00420.59
8.2.30.0060.00318.01
8.2.20.0060.00317.64
8.2.10.0030.00618.11
8.2.00.0030.00617.64
8.1.280.0120.00625.92
8.1.270.0040.00422.23
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00321.31
8.1.230.0030.00919.15
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0100.00017.22
8.1.180.0060.00618.10
8.1.170.0000.00818.59
8.1.160.0000.00822.06
8.1.150.0050.00318.94
8.1.140.0060.00317.45
8.1.130.0040.00417.73
8.1.120.0040.00417.45
8.1.110.0030.00517.53
8.1.100.0050.00217.44
8.1.90.0000.00817.49
8.1.80.0050.00317.49
8.1.70.0000.00717.36
8.1.60.0000.00717.46
8.1.50.0030.00617.61
8.1.40.0000.00717.43
8.1.30.0000.00917.54
8.1.20.0030.00617.47
8.1.10.0000.00717.59
8.1.00.0050.00317.39
8.0.300.0040.00419.79
8.0.290.0040.00416.75
8.0.280.0070.00018.44
8.0.270.0030.00517.26
8.0.260.0000.00617.19
8.0.250.0000.00817.03
8.0.240.0000.00716.94
8.0.230.0030.00316.90
8.0.220.0030.00316.97
8.0.210.0000.00716.84
8.0.200.0050.00316.92
8.0.190.0000.00816.91
8.0.180.0040.00416.96
8.0.170.0040.00416.85
8.0.160.0030.00616.94
8.0.150.0030.00317.00
8.0.140.0000.00716.91
8.0.130.0030.00313.30
8.0.120.0000.00816.93
8.0.110.0070.00016.78
8.0.100.0000.00716.76
8.0.90.0060.00316.92
8.0.80.0120.00616.91
8.0.70.0040.00416.99
8.0.60.0070.00017.06
8.0.50.0030.00516.99
8.0.30.0140.00917.19
8.0.20.0070.01217.40
8.0.10.0090.00017.13
8.0.00.0090.00816.82
7.4.330.0000.00615.00
7.4.320.0030.00316.49
7.4.300.0000.00616.60
7.4.290.0000.00816.48
7.4.280.0040.00416.63
7.4.270.0000.00616.37
7.4.260.0030.00616.62
7.4.250.0000.00816.55
7.4.240.0020.00616.62
7.4.230.0000.00716.59
7.4.220.0130.00616.62
7.4.210.0070.00716.52
7.4.200.0030.00316.58
7.4.160.0090.00616.59
7.4.150.0060.01317.40
7.4.140.0100.01017.86
7.4.130.0120.00616.49
7.4.120.0130.00816.50
7.4.110.0100.00716.55
7.4.100.0140.00416.52
7.4.90.0070.01016.50
7.4.80.0100.01319.39
7.4.70.0060.01016.44
7.4.60.0040.01516.63
7.4.50.0030.00616.63
7.4.40.0070.01016.66
7.4.30.0130.00616.29
7.4.00.0000.01314.77
7.3.330.0060.00013.30
7.3.320.0000.00513.18
7.3.310.0070.00016.20
7.3.300.0030.00316.25
7.3.290.0120.00316.18
7.3.280.0110.00716.34
7.3.270.0170.00617.40
7.3.260.0060.01216.47
7.3.240.0070.01716.57
7.3.230.0120.00616.39
7.3.210.0090.00916.60
7.3.200.0070.01019.39
7.3.190.0060.01016.55
7.3.180.0030.01316.64
7.3.170.0060.01016.30
7.3.160.0060.00916.27
7.3.10.0050.01016.68
7.3.00.0050.00516.63
7.2.330.0070.01016.72
7.2.320.0040.01416.78
7.2.310.0030.01916.66
7.2.300.0070.01016.59
7.2.290.0100.01016.54
7.2.130.0090.00516.76
7.2.120.0030.00816.93
7.2.110.0070.00616.83
7.2.100.0080.00716.72
7.2.90.0070.00616.76
7.2.80.0050.00916.88
7.2.70.0100.00616.95
7.2.60.0090.00516.75
7.2.50.0060.00916.76
7.2.40.0090.00816.96
7.2.30.0070.01016.88
7.2.20.0080.00816.96
7.2.10.0130.00816.76
7.2.00.0070.00717.56
7.1.250.0050.00815.70
7.1.230.0130.00415.78
7.1.220.0170.00015.83
7.1.210.0090.00615.83
7.1.200.0070.00815.57
7.1.190.0070.01115.68
7.1.180.0080.00415.62
7.1.170.0120.00315.81
7.1.160.0150.00415.60
7.1.150.0090.00915.54
7.1.140.0150.00415.63
7.1.130.0040.00915.74
7.1.120.0120.00315.82
7.1.110.0460.00415.76
7.1.100.0980.00516.81
7.1.90.0120.00915.82
7.1.80.0070.00715.65
7.1.70.0100.00216.41
7.1.60.0150.00717.48
7.1.50.0120.00716.48
7.1.40.0160.00415.89
7.1.30.0070.01115.54
7.1.20.0160.00615.78
7.1.10.0050.01315.84
7.1.00.0090.03819.11
7.0.310.0260.00315.37
7.0.300.0210.01115.32
7.0.290.0060.00915.39
7.0.280.0130.00315.26
7.0.270.0190.00015.42
7.0.260.0080.00515.12
7.0.250.0180.00015.46
7.0.240.0150.00015.43
7.0.230.0430.00615.30
7.0.220.0160.00015.29
7.0.210.0120.00415.18
7.0.200.0070.00516.16
7.0.190.0040.00915.33
7.0.180.0130.00015.32
7.0.170.0080.00815.25
7.0.160.0060.00915.47
7.0.150.0090.00615.25
7.0.140.0020.04218.61
7.0.130.0160.00015.28
7.0.120.0560.00015.62
7.0.110.0120.00415.33
7.0.100.0080.00815.30
7.0.90.0120.00415.38
7.0.80.0080.00815.34
7.0.70.0180.00015.60
7.0.60.0080.04817.72
7.0.50.0050.02516.69
7.0.40.0090.04416.69
7.0.30.0320.03916.67
7.0.20.0150.02816.84
7.0.10.0100.03516.86
7.0.00.0160.02416.78
5.6.380.0120.00614.05
5.6.370.0180.00014.57
5.6.360.0140.00414.36
5.6.350.0130.00514.53
5.6.340.0090.00614.11
5.6.330.0110.00714.43
5.6.320.0110.00314.36
5.6.310.0080.00414.69
5.6.300.0110.00714.21
5.6.290.0130.00314.47
5.6.280.0100.03517.64
5.6.270.0140.00314.30
5.6.260.0090.00514.26
5.6.250.0170.00014.46
5.6.240.0080.00814.46
5.6.230.0090.00914.56
5.6.220.0070.00714.42
5.6.210.0110.03017.62
5.6.200.0120.03816.35
5.6.190.0190.03817.27
5.6.180.0220.03917.51
5.6.170.0170.02717.48
5.6.160.0110.02817.30
5.6.150.0060.04516.19
5.6.140.0070.03416.21
5.6.130.0070.02716.27
5.6.120.0070.04417.60
5.6.110.0080.04817.64
5.6.100.0020.02717.74
5.6.90.0170.03517.68
5.6.80.0070.04717.28
5.6.70.0110.00514.29
5.6.60.0120.00714.38
5.6.50.0100.00714.15
5.6.40.0130.00313.94
5.6.30.0120.00314.25
5.6.20.0090.00914.19
5.6.10.0130.00413.98
5.6.00.0100.00713.98
5.5.380.0070.00412.79
5.5.370.0130.00312.79
5.5.360.0040.00812.79
5.5.350.0110.02116.63
5.5.340.0060.04215.44
5.5.330.0070.04516.63
5.5.320.0130.03016.52
5.5.310.0110.02516.55
5.5.300.0050.02015.40
5.5.290.0100.02915.36
5.5.280.0110.04016.89
5.5.270.0090.04016.84
5.5.260.0100.04316.83
5.5.250.0100.04316.71
5.5.240.0180.03016.53
5.5.230.0100.00312.79
5.5.220.0130.00312.79
5.5.210.0080.00412.79
5.5.200.0110.00012.79
5.5.190.0110.00412.79
5.5.180.0120.00312.79
5.5.170.0150.00314.37
5.5.160.0110.00012.79
5.5.150.0060.00612.79
5.5.140.0070.00712.79
5.5.130.0080.00412.79
5.5.120.0100.00012.79
5.5.110.0030.00912.79
5.5.100.0090.00512.79
5.5.90.0040.00712.79
5.5.80.0060.00912.79
5.5.70.0130.00012.79
5.5.60.0090.00412.79
5.5.50.0130.00312.79
5.5.40.0090.00412.79
5.5.30.0100.00212.79
5.5.20.0120.00012.79
5.5.10.0070.00712.79
5.5.00.0070.00712.79
5.4.450.0380.02815.99
5.4.440.0420.03316.05
5.4.430.0110.04016.12
5.4.420.0390.00116.15
5.4.410.0360.00216.10
5.4.400.0400.00015.98
5.4.390.0380.00216.02
5.4.380.0440.00415.93
5.4.370.0340.00216.03
5.4.360.0300.00516.02
5.4.350.0370.00015.96
5.4.340.0090.01912.40
5.4.330.0110.00012.79
5.4.320.0080.01912.65
5.4.310.0100.02012.65
5.4.300.0080.02112.65
5.4.290.0070.02212.64
5.4.280.0050.02412.59
5.4.270.0080.02012.59
5.4.260.0070.02112.59
5.4.250.0140.01612.59
5.4.240.0070.02212.59
5.4.230.0040.02512.59
5.4.220.0070.02312.59
5.4.210.0060.02212.59
5.4.200.0120.02512.59
5.4.190.0160.01412.59
5.4.180.0060.02112.59
5.4.170.0090.01912.59
5.4.160.0090.02012.59
5.4.150.0090.01912.59
5.4.140.0060.02212.43
5.4.130.0050.02212.42
5.4.120.0070.01912.41
5.4.110.0080.01912.40
5.4.100.0100.01912.40
5.4.90.0090.01912.40
5.4.80.0070.02112.40
5.4.70.0060.02112.40
5.4.60.0050.02312.40
5.4.50.0040.02912.40
5.4.40.0070.02312.39
5.4.30.0060.02112.39
5.4.20.0080.02012.39
5.4.10.0080.02012.39
5.4.00.0040.02612.14
5.3.290.0070.02312.79
5.3.280.0080.02212.75
5.3.270.0050.02412.76
5.3.260.0080.02112.76
5.3.250.0040.02712.76
5.3.240.0080.02212.75
5.3.230.0100.02012.75
5.3.220.0070.02412.74
5.3.210.0080.02612.73
5.3.200.0090.02512.73
5.3.190.0060.02312.73
5.3.180.0070.02112.73
5.3.170.0100.02612.73
5.3.160.0080.03012.73
5.3.150.0100.02712.73
5.3.140.0090.02612.72
5.3.130.0060.02612.72
5.3.120.0070.02412.72
5.3.110.0020.02812.72
5.3.100.0080.02012.45
5.3.90.0070.02212.45
5.3.80.0090.01812.44
5.3.70.0040.02312.44
5.3.60.0050.02012.44
5.3.50.0110.01712.41
5.3.40.0070.02212.41
5.3.30.0110.01812.39
5.3.20.0100.01712.28
5.3.10.0100.01812.26
5.3.00.0070.02012.26
5.2.170.0040.01911.01
5.2.160.0020.02011.01
5.2.150.0080.01611.01
5.2.140.0060.01811.01
5.2.130.0040.01610.99
5.2.120.0050.01610.99
5.2.110.0040.01810.99
5.2.100.0050.01710.99
5.2.90.0070.01810.99
5.2.80.0040.02010.99
5.2.70.0060.01510.99
5.2.60.0060.01510.96
5.2.50.0020.02110.95
5.2.40.0060.01610.93
5.2.30.0060.01710.93
5.2.20.0060.01610.92
5.2.10.0050.01410.87
5.2.00.0050.01810.80
5.1.60.0030.01510.44
5.1.50.0010.01710.44
5.1.40.0070.01510.43
5.1.30.0050.01610.61
5.1.20.0070.01310.62
5.1.10.0070.01310.48
5.1.00.0090.01210.48
5.0.50.0030.0139.72
5.0.40.0050.0109.65
5.0.30.0030.0179.56
5.0.20.0030.0129.54
5.0.10.0010.0169.53
5.0.00.0040.0199.53
4.4.90.0040.0098.79
4.4.80.0010.0138.77
4.4.70.0040.0078.77
4.4.60.0050.0098.77
4.4.50.0040.0108.78
4.4.40.0030.0168.75
4.4.30.0030.0108.78
4.4.20.0040.0098.81
4.4.10.0030.0098.82
4.4.00.0040.0148.78
4.3.110.0040.0098.73
4.3.100.0040.0098.73
4.3.90.0040.0108.71
4.3.80.0000.0188.69
4.3.70.0010.0118.71
4.3.60.0020.0088.71
4.3.50.0040.0088.71
4.3.40.0030.0148.66
4.3.30.0040.0098.04
4.3.20.0020.0098.02
4.3.10.0030.0108.01
4.3.00.0060.0149.99

preferences:
55.38 ms | 401 KiB | 5 Q