3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { public function a(); } class B implements A { public function a() : A { return $this; } } $b = new 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.0100.00716.38
8.3.50.0100.00821.21
8.3.40.0040.01118.72
8.3.30.0100.01018.40
8.3.20.0040.00420.09
8.3.10.0040.00423.56
8.3.00.0050.00323.62
8.2.180.0070.00716.50
8.2.170.0090.00622.96
8.2.160.0170.00320.50
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.03
8.2.120.0080.00026.35
8.2.110.0060.00322.07
8.2.100.0110.00017.66
8.2.90.0000.00818.08
8.2.80.0030.00617.97
8.2.70.0050.00517.63
8.2.60.0040.00417.93
8.2.50.0000.00818.09
8.2.40.0050.00322.20
8.2.30.0000.00719.30
8.2.20.0070.00017.78
8.2.10.0000.00818.16
8.2.00.0040.00417.98
8.1.280.0030.01025.92
8.1.270.0050.00222.18
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00623.98
8.1.230.0040.00720.81
8.1.220.0000.00717.74
8.1.210.0030.00620.47
8.1.200.0060.00317.10
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0040.00420.79
8.1.150.0050.00218.79
8.1.140.0000.00819.44
8.1.130.0070.00017.74
8.1.120.0030.00317.35
8.1.110.0040.00417.46
8.1.100.0000.00717.27
8.1.90.0070.00017.33
8.1.80.0000.00717.41
8.1.70.0050.00217.46
8.1.60.0000.00817.54
8.1.50.0000.00817.52
8.1.40.0080.00017.40
8.1.30.0030.00517.57
8.1.20.0040.00417.61
8.1.10.0050.00317.53
8.1.00.0000.00817.46
8.0.300.0060.00320.08
8.0.290.0070.00016.75
8.0.280.0040.00418.43
8.0.270.0030.00317.24
8.0.260.0030.00317.12
8.0.250.0030.00316.83
8.0.240.0000.00716.97
8.0.230.0000.00716.91
8.0.220.0030.00316.75
8.0.210.0040.00416.92
8.0.200.0000.00616.96
8.0.190.0040.00416.83
8.0.180.0000.00816.85
8.0.170.0070.00016.82
8.0.160.0030.00316.92
8.0.150.0000.00716.86
8.0.140.0030.00516.86
8.0.130.0030.00313.30
8.0.120.0000.00816.80
8.0.110.0030.00316.86
8.0.100.0040.00416.66
8.0.90.0030.00516.95
8.0.80.0050.01016.87
8.0.70.0000.00816.84
8.0.60.0080.00016.73
8.0.50.0040.00416.86
8.0.30.0110.00916.95
8.0.20.0070.01217.40
8.0.10.0040.00417.04
8.0.00.0120.01116.81
7.4.330.0000.00516.83
7.4.320.0030.00316.44
7.4.300.0040.00416.47
7.4.290.0030.00316.51
7.4.280.0000.00816.47
7.4.270.0030.00316.46
7.4.260.0070.00016.41
7.4.250.0040.00416.45
7.4.240.0000.00716.50
7.4.230.0000.00716.40
7.4.220.0140.00316.61
7.4.210.0100.00516.45
7.4.200.0000.00716.47
7.4.160.0090.00616.41
7.4.150.0060.01317.40
7.4.140.0100.01017.86
7.4.130.0080.01016.55
7.4.120.0120.00916.54
7.4.110.0170.00016.56
7.4.100.0130.00916.37
7.4.90.0050.01116.66
7.4.80.0130.00919.39
7.4.70.0070.01016.61
7.4.60.0110.00616.36
7.4.50.0080.00516.39
7.4.40.0090.00816.57
7.4.30.0060.01116.36
7.4.00.0070.01014.97
7.3.330.0040.00212.96
7.3.320.0050.00013.18
7.3.310.0070.00016.04
7.3.300.0040.00416.14
7.3.290.0060.01216.19
7.3.280.0070.00916.15
7.3.270.0120.00317.40
7.3.260.0070.01016.41
7.3.250.0120.00516.18
7.3.240.0100.01216.25
7.3.230.0100.00916.39
7.3.210.0100.00716.26
7.3.200.0000.01919.39
7.3.190.0040.01116.41
7.3.180.0130.00716.41
7.3.170.0160.00716.41
7.3.160.0100.00716.30
7.2.330.0080.00816.72
7.2.320.0130.00516.63
7.2.310.0070.01416.64
7.2.300.0150.00616.49
7.2.290.0090.00816.34
7.2.60.0090.00616.71
7.2.00.0030.01319.46
7.1.200.0080.00615.32
7.1.100.0070.00717.68
7.1.70.0030.00616.97
7.1.60.0070.01719.28
7.1.50.0070.00316.78
7.1.00.0030.07722.43
7.0.200.0000.00816.72
7.0.60.0030.07321.84
7.0.50.0070.08017.87
7.0.40.0100.09720.11
7.0.30.0230.08020.16
7.0.20.0070.05020.12
7.0.10.0070.08320.12
7.0.00.0000.04720.05
5.6.280.0030.04021.04
5.6.210.0070.06320.61
5.6.200.0100.04018.25
5.6.190.0000.06020.61
5.6.180.0270.07720.77
5.6.170.0400.07320.52
5.6.160.0100.07720.54
5.6.150.0100.05718.19
5.6.140.0070.05018.25
5.6.130.0070.04018.18
5.6.120.0170.07321.00
5.6.110.0130.06321.00
5.6.100.0070.04320.89
5.6.90.0100.07321.04
5.6.80.0000.07020.44
5.5.350.4300.03720.45
5.5.340.0170.06717.98
5.5.330.0100.06020.38
5.5.320.0500.05020.33
5.5.310.0200.04720.36
5.5.300.0070.04317.98
5.5.290.0130.05717.95
5.5.280.0000.05020.80
5.5.270.0070.08720.77
5.5.260.0000.09020.67
5.5.250.0130.03720.46
5.5.240.0200.07020.27

preferences:
33.48 ms | 401 KiB | 5 Q