3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @param array<Exception> $input */ function takes(array $input): string|null { return $input[0]?->getMessage(); } takes([]);

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.0140.00718.16
8.3.50.0090.00920.48
8.3.40.0070.01421.96
8.3.30.0080.00818.52
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.180.0150.00625.92
8.2.170.0110.00818.83
8.2.160.0100.00322.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00220.94
8.2.110.0060.00321.18
8.2.100.0110.00417.62
8.2.90.0130.00217.86
8.2.80.0050.00618.28
8.2.70.0110.00417.40
8.2.60.0120.00417.67
8.2.50.0080.00617.74
8.2.40.0100.00418.90
8.2.30.0080.00517.69
8.2.20.0040.00718.28
8.2.10.0060.00617.58
8.2.00.0060.00518.22
8.1.280.0060.01225.92
8.1.270.0050.00224.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00319.39
8.1.230.0120.00119.83
8.1.220.0090.00217.37
8.1.210.0040.00917.88
8.1.200.0070.00418.12
8.1.190.0050.00916.98
8.1.180.0100.00317.61
8.1.170.0080.00617.67
8.1.160.0080.00317.97
8.1.150.0090.00417.88
8.1.140.0090.00617.18
8.1.130.0080.00517.83
8.1.120.0090.00417.27
8.1.110.0100.00117.11
8.1.100.0050.00717.18
8.1.90.0080.00517.29
8.1.80.0120.00417.28
8.1.70.0120.00317.25
8.1.60.0120.00517.42
8.1.50.0100.00617.39
8.1.40.0110.00517.62
8.1.30.0110.00517.48
8.1.20.0100.00517.49
8.1.10.0110.00517.39
8.1.00.0090.00817.32
8.0.300.0100.00318.20
8.0.290.0060.00516.75
8.0.280.0030.00717.57
8.0.270.0050.00516.68
8.0.260.0060.00417.43
8.0.250.0060.00416.78
8.0.240.0050.00616.88
8.0.230.0050.00716.85
8.0.220.0070.00716.81
8.0.210.0080.00516.81
8.0.200.0090.00516.86
8.0.190.0090.00516.84
8.0.180.0090.00516.70
8.0.170.0080.00616.77
8.0.160.0110.00317.01
8.0.150.0060.00616.68
8.0.140.0060.00716.70
8.0.130.0070.00716.71
8.0.120.0090.00416.78
8.0.110.0080.00516.76
8.0.100.0090.00516.79
8.0.90.0090.00516.76
8.0.80.0080.00416.76
8.0.70.0080.00516.75
8.0.60.0090.00516.81
8.0.50.0080.00516.78
8.0.30.0080.00516.81
8.0.20.0100.00416.83
8.0.10.0090.00416.92
7.4.330.0120.00014.58
7.4.320.0120.00416.10
7.4.300.0110.00416.29
7.4.290.0090.00716.29
7.4.280.0130.00416.30
7.4.270.0120.00516.28
7.4.260.0120.00316.30
7.4.250.0120.00516.32
7.4.240.0120.00416.26
7.4.230.0150.00316.27
7.4.220.0140.00216.38
7.4.210.0110.00516.29
7.4.200.0120.00416.27
7.4.190.0110.00516.30
7.4.180.0100.00516.31
7.4.160.0110.00216.33
7.4.150.0080.00516.21
7.4.140.0080.00616.18
7.4.130.0100.00416.11
7.4.120.0100.00516.17
7.4.110.0090.00516.13
7.4.100.0110.00416.19
7.4.90.0100.00516.06
7.4.80.0100.00316.09
7.4.70.0090.00516.09
7.4.60.0110.00216.08
7.4.50.0070.00616.02
7.4.40.0070.00616.02
7.4.30.0100.00316.05
7.4.20.0100.00416.00
7.4.10.0090.00516.17
7.4.00.0110.00416.09

preferences:
49.43 ms | 400 KiB | 5 Q