3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TypeA {} class TypeB {} interface hasMethodA { public function method(): TypeA & TypeB; }

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.0070.01220.11
8.5.20.0080.01019.99
8.5.10.0110.00618.71
8.5.00.0110.01019.67
8.4.180.0090.01322.04
8.4.170.0150.00921.95
8.4.160.0120.00922.06
8.4.150.0030.00014.05
8.4.140.0140.01117.39
8.4.130.0110.01017.85
8.4.120.0120.00723.88
8.4.110.0110.00718.98
8.4.100.0130.00717.50
8.4.90.0130.00818.67
8.4.80.0050.00318.59
8.4.70.0080.00717.77
8.4.60.0110.00818.82
8.4.50.0100.00718.31
8.4.40.0130.00319.21
8.4.30.0080.01118.48
8.4.20.0100.01018.00
8.4.10.0060.00322.04
8.3.300.0130.00718.22
8.3.290.0120.00820.62
8.3.280.0120.01018.28
8.3.270.0110.00816.69
8.3.260.0120.00716.59
8.3.250.0070.00817.16
8.3.240.0040.00317.10
8.3.230.0140.00516.47
8.3.220.0100.00918.86
8.3.210.0080.00616.73
8.3.200.0030.00516.41
8.3.190.0070.00717.19
8.3.180.0150.00418.88
8.3.170.0040.01417.04
8.3.160.0110.00716.45
8.3.150.0070.00717.02
8.3.140.0100.01016.40
8.3.130.0090.00018.36
8.3.120.0060.00918.88
8.3.110.0090.00022.58
8.3.100.0050.00320.94
8.3.90.0090.00020.94
8.3.50.0050.00520.94
8.2.300.0090.01121.99
8.2.290.0080.00820.42
8.2.280.0120.00718.31
8.2.270.0160.00316.38
8.2.260.0150.00317.00
8.2.250.0080.00016.59
8.2.240.0000.00918.98
8.2.230.0040.01220.94
8.2.220.0060.00922.58
8.2.210.0030.00622.58
8.1.340.0090.01019.38
8.1.330.0020.00621.93
8.1.320.0110.00815.90
8.1.310.0070.00716.61
8.1.300.0060.00317.96
8.1.50.0040.00417.36
8.1.40.0030.00617.39
8.1.30.0060.00317.50
8.1.20.0050.00317.53
8.1.10.0100.00017.34
8.1.00.0030.00517.20
8.0.180.0080.00016.84
8.0.170.0000.00916.80
8.0.160.0100.00616.95
8.0.150.0130.00316.68
8.0.140.0080.00216.72
8.0.130.0180.00016.83
8.0.120.0100.00416.74
8.0.110.0140.00016.80
8.0.100.0040.00816.81
8.0.90.0150.00516.75
8.0.80.0150.00316.81
8.0.70.0080.00416.85
8.0.60.0070.00716.79
8.0.50.0110.00616.79
8.0.30.0100.01016.79
8.0.20.0080.01116.81
8.0.10.0150.00416.88
7.4.290.0030.00716.36
7.4.280.0270.00016.35
7.4.270.0130.00616.38
7.4.260.0140.00716.36
7.4.250.0180.00316.22
7.4.240.0150.00616.29
7.4.230.0190.00416.47
7.4.220.0120.00816.25
7.4.210.0140.00516.32
7.4.200.0160.00416.43
7.4.190.0160.00316.39
7.4.180.0090.00016.49
7.4.160.0040.00716.34
7.4.150.0120.00316.27
7.4.140.0130.00616.30
7.4.130.0160.00316.23
7.4.120.0120.00816.21
7.4.110.0090.00516.21
7.4.100.0100.00216.34
7.4.90.0100.00016.22
7.4.80.0160.00016.13
7.4.70.0140.00316.11
7.4.60.0110.00616.11
7.4.50.0120.00616.16
7.4.40.0090.00916.00
7.4.30.0090.00516.10
7.4.20.0060.00616.23
7.4.10.0110.00416.22
7.4.00.0050.00516.24

preferences:
75.56 ms | 403 KiB | 5 Q