3v4l.org

run code in 500+ PHP versions simultaneously
<?php # this shows the error when using self as a return type in an # interface on PHP 7.3 – the same works fine in 7.4+ interface NodeInterface {} interface SuggestionContextInterface { public function buildForIndex(NodeInterface $node): self; } class SuggestionContext implements SuggestionContextInterface { public function buildForIndex(NodeInterface $node): self { return $this; } }

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.5.30.0120.00620.66
8.5.20.0100.00819.46
8.5.10.0110.00716.68
8.5.00.0120.00919.76
8.4.180.0130.00820.36
8.4.170.0150.01021.75
8.4.160.0150.00822.02
8.4.150.0060.00716.71
8.4.140.0080.01217.36
8.4.130.0090.00918.79
8.4.120.0120.00917.65
8.4.110.0110.00819.62
8.4.100.0140.00817.64
8.4.90.0100.00920.53
8.4.80.0080.01018.97
8.4.70.0120.00918.75
8.4.60.0020.00619.06
8.4.50.0130.00718.81
8.4.40.0110.00617.72
8.4.30.0110.00720.28
8.4.20.0100.00720.30
8.4.10.0030.00719.16
8.3.300.0090.01118.35
8.3.290.0150.00620.82
8.3.280.0130.00718.37
8.3.270.0100.01016.61
8.3.260.0130.00616.36
8.3.250.0140.00516.63
8.3.240.0130.00716.52
8.3.230.0110.00816.54
8.3.220.0040.00419.06
8.3.210.0060.00516.49
8.3.200.0050.00516.45
8.3.190.0110.00717.26
8.3.180.0120.00719.06
8.3.170.0030.00620.55
8.3.160.0100.00518.92
8.3.150.0070.01317.16
8.3.140.0110.00720.86
8.3.130.0040.00418.22
8.3.120.0040.00418.72
8.3.110.0030.00620.94
8.3.100.0070.00724.06
8.3.90.0090.00026.77
8.3.80.0060.00318.43
8.3.70.0090.00618.18
8.3.60.0090.00616.36
8.3.50.0140.00719.93
8.3.40.0130.00322.06
8.3.30.0070.00718.46
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.300.0090.01122.00
8.2.290.0090.01016.65
8.2.280.0090.01018.23
8.2.270.0100.01016.51
8.2.260.0080.00016.83
8.2.250.0050.00316.42
8.2.240.0000.00918.95
8.2.230.0000.00822.58
8.2.220.0030.00637.54
8.2.210.0000.01426.77
8.2.200.0100.00016.63
8.2.190.0070.00716.58
8.2.180.0060.01525.92
8.2.170.0080.00818.66
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0080.00026.16
8.2.110.0060.00319.27
8.2.100.0060.00617.68
8.2.90.0060.00317.38
8.2.80.0050.00318.64
8.2.70.0000.00917.63
8.2.60.0000.00717.93
8.2.50.0000.00817.58
8.2.40.0000.00817.63
8.2.30.0000.00717.62
8.2.20.0030.00320.34
8.2.10.0040.00417.64
8.2.00.0040.00419.16
8.1.340.0140.00523.40
8.1.330.0070.01116.11
8.1.320.0100.00918.02
8.1.310.0040.00416.70
8.1.300.0000.00819.57
8.1.290.0090.00030.84
8.1.280.0030.01225.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00419.14
8.1.230.0110.00017.70
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0050.00517.13
8.1.190.0030.00517.23
8.1.180.0040.00818.10
8.1.170.0000.00917.62
8.1.160.0040.00418.85
8.1.150.0070.00018.45
8.1.140.0050.00217.28
8.1.130.0030.00318.73
8.1.120.0070.00017.47
8.1.110.0050.00317.39
8.1.100.0000.00717.37
8.1.90.0000.00817.41
8.1.80.0040.00417.38
8.1.70.0000.00717.27
8.1.60.0070.00017.52
8.1.50.0080.00017.48
8.1.40.0070.00017.50
8.1.30.0030.00517.41
8.1.20.0030.00517.60
8.1.10.0040.00417.36
8.1.00.0120.00417.26
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0070.00018.29
8.0.270.0030.00616.75
8.0.260.0070.00018.33
8.0.250.0070.00016.88
8.0.240.0030.00316.82
8.0.230.0070.00016.89
8.0.220.0000.00616.73
8.0.210.0070.00016.74
8.0.200.0030.00316.90
8.0.190.0070.00016.86
8.0.180.0040.00416.87
8.0.170.0040.00416.81
8.0.160.0090.00016.79
8.0.150.0000.00716.79
8.0.140.0040.00416.74
8.0.130.0150.00016.70
8.0.120.0090.00916.83
8.0.110.0040.01116.71
8.0.100.0110.00416.73
8.0.90.0050.01116.72
8.0.80.0120.00516.75
8.0.70.0140.00416.66
8.0.60.0090.00716.59
8.0.50.0130.00316.64
8.0.30.0090.00716.75
8.0.20.0140.00316.71
8.0.10.0150.00316.91
8.0.00.0140.00416.93
7.4.330.0000.00515.55
7.4.320.0070.00016.43
7.4.300.0000.00716.53
7.4.290.0000.00816.46
7.4.280.0050.00216.33
7.4.270.0030.00616.54
7.4.260.0180.00916.54
7.4.250.0260.00016.41
7.4.240.0250.00316.54
7.4.230.0250.00016.54
7.4.220.0160.00516.42
7.4.210.0160.00416.42
7.4.200.0150.00716.42
7.4.190.0130.00616.60
7.4.180.0160.00416.55
7.4.160.0210.00016.39
7.4.150.0150.00616.36
7.4.140.0150.00516.34
7.4.130.0160.00516.40
7.4.120.0180.00316.32
7.4.110.0130.00716.36
7.4.100.0140.00616.36
7.4.90.0170.00316.34
7.4.80.0140.00716.25
7.4.70.0140.00716.30
7.4.60.0200.00016.16
7.4.50.0150.00616.20
7.4.40.0220.00016.32
7.4.30.0130.00916.23
7.4.20.0110.00416.44
7.4.10.0080.00316.31
7.4.00.0100.00316.40
7.3.330.0100.00316.04
7.3.320.0050.00716.22
7.3.310.0080.00416.21
7.3.300.0110.00016.17
7.3.290.0000.01216.21
7.3.280.0080.00316.13
7.3.270.0110.00316.06
7.3.260.0060.00616.37
7.3.250.0090.00416.32
7.3.240.0080.00416.09
7.3.230.0000.01216.08
7.3.220.0120.00416.07
7.3.210.0060.00616.04
7.3.200.0150.00016.04
7.3.190.0190.00316.09
7.3.180.0220.00216.27
7.3.170.0160.00516.27
7.3.160.0150.00516.30
7.3.150.0160.00416.25
7.3.140.0220.00016.09
7.3.130.0160.00616.12

preferences:
116.35 ms | 1317 KiB | 5 Q