3v4l.org

run code in 300+ PHP versions simultaneously
<?php $callable = fn() => throw new Exception(); // $value is non-nullable. // $value = $nullableValue ?? throw new InvalidArgumentException(); // $value is truthy. $value = $falsableValue ?: throw new InvalidArgumentException(); // $value is only set if the array is not empty. $value = !empty($array) ? reset($array) : throw new InvalidArgumentException();

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.0090.01216.50
8.3.50.0060.00916.25
8.3.40.0140.00718.71
8.3.30.0040.01118.88
8.3.20.0060.00324.18
8.3.10.0070.00024.66
8.3.00.0000.00826.16
8.2.180.0120.00325.92
8.2.170.0030.01219.09
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00421.24
8.2.110.0060.00320.54
8.2.100.0100.00018.77
8.1.280.0110.01125.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0100.00018.67
8.1.230.0070.00318.53
7.4.50.0060.01216.30
7.4.40.0130.00316.31
7.4.30.0060.00916.16
7.4.20.0060.00916.43
7.4.10.0040.01116.08
7.4.00.0070.00716.31
7.3.170.0100.00616.26
7.3.160.0090.00616.24
7.3.150.0070.00716.35
7.3.140.0070.01016.00
7.3.130.0040.01116.21
7.3.120.0110.00416.28
7.3.110.0030.01316.38
7.3.100.0110.00416.15
7.3.90.0090.00616.16
7.3.80.0090.00916.16
7.3.70.0040.01116.19
7.3.60.0090.00616.13
7.3.50.0060.00915.96
7.3.40.0130.00316.22
7.3.30.0120.00415.91
7.3.20.0090.00616.10
7.3.10.0130.00316.04
7.3.00.0130.00316.29
7.2.290.0100.00516.38
7.2.280.0120.00316.36
7.2.270.0080.00816.58
7.2.260.0070.01016.39
7.2.250.0040.01216.29
7.2.240.0100.00516.43
7.2.230.0130.00316.29
7.2.220.0120.00616.19
7.2.210.0000.01616.39
7.2.200.0040.01116.27
7.2.190.0040.01216.30
7.2.180.0030.01316.25
7.2.170.0030.01216.36
7.2.160.0160.00016.22
7.2.150.0090.00916.14
7.2.140.0110.00716.38
7.2.130.0070.01016.45
7.2.120.0130.00316.39
7.2.110.0090.00616.35
7.2.100.0060.01016.24
7.2.90.0150.00016.30
7.2.80.0060.00916.43
7.2.70.0110.00516.29
7.2.60.0130.00316.12
7.2.50.0060.00916.51
7.2.40.0090.00616.35
7.2.30.0500.00716.43
7.2.20.0130.00316.45
7.2.10.0120.00316.36
7.2.00.0130.00316.10

preferences:
43.36 ms | 404 KiB | 6 Q