3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public function selfRef(self $other); } class TestImpl implements Test { public function selfRef(Test $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.0110.01416.75
8.3.50.0100.00921.20
8.3.40.0040.01118.68
8.3.30.0070.00719.04
8.3.20.0070.00020.34
8.3.10.0040.00423.70
8.3.00.0060.00319.38
8.2.180.0000.01416.63
8.2.170.0040.01122.96
8.2.160.0100.00720.29
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0080.00022.28
8.2.110.0030.00622.24
8.2.100.0080.00418.86
8.2.90.0060.00317.75
8.2.80.0030.00517.97
8.2.70.0090.00017.93
8.2.60.0020.00517.93
8.2.50.0040.00418.10
8.2.40.0000.00720.60
8.2.30.0030.00518.06
8.2.20.0040.00417.69
8.2.10.0000.00718.10
8.2.00.0080.00017.68
8.1.280.0070.00725.92
8.1.270.0050.00521.82
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.23
8.1.230.0000.01119.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0050.00517.23
8.1.190.0090.00316.98
8.1.180.0070.00318.10
8.1.170.0000.00818.53
8.1.160.0080.00021.86
8.1.150.0030.00518.80
8.1.140.0040.00417.44
8.1.130.0050.00217.70
8.1.120.0040.00417.43
8.1.110.0000.00717.46
8.1.100.0000.00717.38
8.1.90.0000.00817.29
8.1.80.0040.00317.39
8.1.70.0050.00317.36
8.1.60.0070.00317.59
8.1.50.0050.00317.45
8.1.40.0000.00917.49
8.1.30.0000.00817.52
8.1.20.0040.00417.67
8.1.10.0050.00317.51
8.1.00.0050.00317.37
8.0.300.0060.00319.64
8.0.290.0080.00416.75
8.0.280.0030.00518.43
8.0.270.0000.00717.33
8.0.260.0030.00317.14
8.0.250.0030.00317.03
8.0.240.0000.00617.00
8.0.230.0000.00716.91
8.0.220.0070.00016.97
8.0.210.0000.00716.98
8.0.200.0070.00016.97
8.0.190.0020.00516.99
8.0.180.0000.00716.98
8.0.170.0000.00816.88
8.0.160.0040.00416.86
8.0.150.0000.00716.92
8.0.140.0050.00316.91
8.0.130.0000.00613.40
8.0.120.0040.00416.77
8.0.110.0040.00416.87
8.0.100.0000.00716.83
8.0.90.0000.00916.73
8.0.80.0100.00617.00
8.0.70.0040.00416.82
8.0.60.0000.00816.81
8.0.50.0000.00716.74
8.0.30.0110.01017.24
8.0.20.0060.01417.40
8.0.10.0060.00316.94
8.0.00.0100.01016.88
7.4.330.0030.00315.15
7.4.320.0030.00316.57
7.4.300.0000.00616.55
7.4.290.0040.00416.66
7.4.280.0050.00316.58
7.4.270.0030.00316.59
7.4.260.0050.00516.57
7.4.250.0040.00416.57
7.4.240.0020.00516.54
7.4.230.0030.00316.66
7.4.220.0220.00016.60
7.4.210.0100.00616.54
7.4.200.0040.00416.68
7.4.160.0090.01216.77
7.4.150.0110.00717.40
7.4.140.0130.00617.86
7.4.130.0100.00816.58
7.4.120.0070.01016.33
7.4.110.0130.00316.50
7.4.100.0080.01216.31
7.4.90.0040.01416.47
7.4.80.0100.01019.39
7.4.70.0070.01016.45
7.4.60.0130.00316.52
7.4.50.0030.00316.55
7.4.40.0070.01016.36
7.4.30.0130.01016.46
7.4.00.0070.00714.88
7.3.330.0000.00613.30
7.3.320.0030.00313.25
7.3.310.0030.00316.33
7.3.300.0030.00316.16
7.3.290.0120.00316.29
7.3.280.0080.00716.29
7.3.270.0080.01217.40
7.3.260.0040.01316.47
7.3.250.0090.00716.39
7.3.240.0160.00616.50
7.3.230.0030.01316.39
7.3.210.0140.00416.46
7.3.200.0120.00619.39
7.3.190.0100.01016.56
7.3.180.0070.01516.41
7.3.170.0090.00816.57
7.3.160.0060.00916.54
7.2.330.0000.01716.79
7.2.320.0110.00716.46
7.2.310.0150.00316.27
7.2.300.0060.00916.67
7.2.290.0090.00916.47
7.2.60.0060.00616.85
7.2.00.0030.01019.26
7.1.200.0110.00015.77
7.1.100.0190.00316.30
7.1.70.0070.00017.13
7.1.60.0030.02019.32
7.1.50.0100.01316.92
7.1.00.0000.08022.48
7.0.200.0050.00216.75
7.0.140.0000.07022.08
7.0.60.0130.07719.78
7.0.50.0100.06017.97
7.0.40.0170.04320.23
7.0.30.0370.04720.24
7.0.20.0070.05020.17
7.0.10.0030.05320.24
7.0.00.0230.07020.23
5.6.280.0000.07721.11
5.6.210.0100.07720.63
5.6.200.0000.08318.25
5.6.190.0100.04320.48
5.6.180.0330.08020.63
5.6.170.0070.05020.49
5.6.160.0070.06320.50
5.6.150.0100.08018.20
5.6.140.0100.06718.15
5.6.130.0130.07018.23
5.6.120.0100.05321.09
5.6.110.0130.07721.07
5.6.100.0070.04021.00
5.6.90.0070.07020.97
5.6.80.0130.07720.53
5.5.350.0070.05720.39
5.5.340.0030.08717.99
5.5.330.0000.07320.25
5.5.320.0300.04720.29
5.5.310.0200.03720.29
5.5.300.0100.03317.99
5.5.290.0070.08018.07
5.5.280.0100.07020.96
5.5.270.0070.05320.86
5.5.260.0230.06720.67
5.5.250.0070.08320.47
5.5.240.0170.03320.37
5.4.450.0930.06319.56
5.4.440.0900.04719.45
5.4.430.0730.05719.63
5.4.420.0630.00019.52
5.4.410.0700.00019.45
5.4.400.0630.00019.22
5.4.390.0600.00019.16
5.4.380.0630.00019.16
5.4.370.0670.00019.04
5.4.360.0600.00019.06
5.4.350.0630.00019.05
5.4.340.0090.03712.02
5.4.320.0050.03712.50
5.4.310.0070.03712.50
5.4.300.0040.03912.50
5.4.290.0070.03712.50
5.4.280.0070.04312.39
5.4.270.0060.03612.40
5.4.260.0050.03912.40
5.4.250.0080.03712.39
5.4.240.0070.03812.39
5.4.230.0060.03912.38
5.4.220.0090.03512.38
5.4.210.0090.04112.39
5.4.200.0090.06712.39
5.4.190.0120.06012.38
5.4.180.0070.03812.38
5.4.170.0050.04212.40
5.4.160.0080.03612.39
5.4.150.0050.04112.38
5.4.140.0070.04412.07
5.4.130.0080.03312.06
5.4.120.0040.03712.02
5.4.110.0070.04212.01
5.4.100.0110.03212.01
5.4.90.0040.03912.01
5.4.80.0040.03912.01
5.4.70.0060.03612.00
5.4.60.0080.03612.01
5.4.50.0080.04812.01
5.4.40.0080.03412.00
5.4.30.0070.03411.99
5.4.20.0030.03911.99
5.4.10.0060.03711.99
5.4.00.0040.04011.48
5.3.290.0040.04012.80
5.3.280.0070.03612.71
5.3.270.0080.03712.73
5.3.260.0080.03712.72
5.3.250.0080.03912.72
5.3.240.0040.04512.72
5.3.230.0070.03912.71
5.3.220.0050.04212.68
5.3.210.0060.04512.68
5.3.200.0080.04212.68
5.3.190.0070.05212.68
5.3.180.0080.04212.68
5.3.170.0100.04312.67
5.3.160.0100.04912.67
5.3.150.0080.05012.67
5.3.140.0060.04812.66
5.3.130.0100.04712.66
5.3.120.0070.05312.66
5.3.110.0070.05312.66
5.3.100.0110.04612.13
5.3.90.0100.04612.11
5.3.80.0080.04712.10
5.3.70.0080.04712.10
5.3.60.0120.04312.08
5.3.50.0060.04812.04
5.3.40.0070.04712.03
5.3.30.0100.04411.98
5.3.20.0080.04511.77
5.3.10.0080.04611.73
5.3.00.0110.06511.72
5.2.170.0080.0389.23
5.2.160.0080.0509.23
5.2.150.0080.0399.23
5.2.140.0080.0419.23
5.2.130.0080.0399.18
5.2.120.0050.0429.18
5.2.110.0060.0419.20
5.2.100.0070.0399.19
5.2.90.0100.0379.19
5.2.80.0100.0389.19
5.2.70.0040.0459.18
5.2.60.0080.0409.13
5.2.50.0050.0429.11
5.2.40.0090.0359.08
5.2.30.0090.0379.06
5.2.20.0080.0369.04
5.2.10.0050.0348.95
5.2.00.0080.0278.81
5.1.60.0040.0268.10
5.1.50.0050.0258.09
5.1.40.0060.0268.07
5.1.30.0050.0278.42
5.1.20.0120.0278.45
5.1.10.0030.0318.17
5.1.00.0090.0238.17
5.0.50.0030.0236.65
5.0.40.0070.0226.51
5.0.30.0050.0326.32
5.0.20.0040.0226.28
5.0.10.0040.0196.26
5.0.00.0040.0336.26
4.4.90.0040.0214.78
4.4.80.0050.0194.76
4.4.70.0040.0174.75
4.4.60.0030.0214.75
4.4.50.0060.0194.77
4.4.40.0060.0304.71
4.4.30.0030.0214.76
4.4.20.0030.0224.85
4.4.10.0040.0214.85
4.4.00.0060.0294.76
4.3.110.0040.0214.67
4.3.100.0060.0184.67
4.3.90.0060.0174.64
4.3.80.0020.0304.58
4.3.70.0020.0154.63
4.3.60.0030.0154.63
4.3.50.0040.0154.63
4.3.40.0010.0274.54
4.3.30.0030.0163.28
4.3.20.0030.0153.26
4.3.10.0010.0183.22
4.3.00.0000.0237.33

preferences:
47.08 ms | 401 KiB | 5 Q