3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(callable $bar) { throw new \Exception; } try { foo(fn($_) => $_); } catch (\Throwable $e) { var_dump(serialize($e)); }

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.4.10.0050.00317.85
8.3.140.0060.01218.75
8.3.130.0040.00418.56
8.3.120.0090.00018.80
8.3.110.0090.00020.94
8.3.100.0000.00824.06
8.3.90.0050.00318.38
8.3.80.0040.00416.88
8.3.70.0110.00418.41
8.3.60.0000.01416.63
8.3.50.0110.00720.21
8.3.40.0100.00519.21
8.3.30.0110.00418.93
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.250.0080.00018.46
8.2.240.0030.00617.13
8.2.230.0090.00322.58
8.2.220.0130.00337.54
8.2.210.0120.00326.77
8.2.200.0040.00416.75
8.2.190.0120.00617.00
8.2.180.0140.00725.92
8.2.170.0090.00618.98
8.2.160.0000.01522.96
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0070.00321.98
8.2.100.0090.00317.97
8.2.90.0030.00519.22
8.2.80.0080.00018.05
8.2.70.0000.00917.63
8.2.60.0000.00919.66
8.2.50.0060.00318.07
8.2.40.0040.00418.16
8.2.30.0050.00218.01
8.2.20.0000.00720.45
8.2.10.0040.00417.74
8.2.00.0000.00719.26
8.1.300.0090.00616.12
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00919.12
8.1.230.0040.00717.82
8.1.220.0000.00817.77
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0030.00518.49
8.1.160.0000.00718.90
8.1.150.0030.00618.57
8.1.140.0040.00417.46
8.1.130.0070.00017.46
8.1.120.0000.00817.50
8.1.110.0000.00717.35
8.1.100.0040.00417.48
8.1.90.0020.00517.29
8.1.80.0040.00417.36
8.1.70.0040.00417.49
8.1.60.0060.00317.58
8.1.50.0050.00317.50
8.1.40.0000.00717.55
8.1.30.0170.00717.64
8.1.20.0180.00517.59
8.1.10.0150.01017.48
8.1.00.0190.00717.51
8.0.300.0070.00018.77
8.0.290.0030.00716.63
8.0.280.0040.00420.11
8.0.270.0030.00417.91
8.0.260.0000.00916.80
8.0.250.0030.00516.93
8.0.240.0040.00416.88
8.0.230.0030.00316.84
8.0.220.0000.01016.86
8.0.210.0000.00716.79
8.0.200.0060.00016.90
8.0.190.0040.00416.94
8.0.180.0040.00416.99
8.0.170.0030.00616.99
8.0.160.0210.00016.90
8.0.150.0220.00016.84
8.0.140.0150.00516.75
8.0.130.0170.00316.97
8.0.120.0100.01016.94
8.0.110.0130.00516.84
8.0.100.0170.00216.96
8.0.90.0170.00316.92
8.0.80.0150.00416.98
8.0.70.0110.00716.90
8.0.60.0130.00716.82
8.0.50.0130.00616.66
8.0.30.0160.00316.88
8.0.20.0140.00417.04
8.0.10.0170.00317.07
7.4.330.0050.00015.55
7.4.320.0000.00716.36
7.4.300.0030.00316.43
7.4.290.0030.00616.44
7.4.280.0140.00716.59
7.4.270.0080.00316.61
7.4.260.0070.00816.48
7.4.250.0110.00716.46
7.4.240.0150.00616.50
7.4.230.0220.00416.57
7.4.220.0110.00716.38
7.4.210.0140.00316.61
7.4.200.0160.00016.43
7.4.190.0130.00316.59
7.4.180.0110.00616.38
7.4.160.0150.00516.58
7.4.150.0100.00616.51
7.4.140.0140.00316.42
7.4.130.0070.00716.39
7.4.120.0110.00716.42
7.4.110.0150.00316.56
7.4.100.0190.00016.42
7.4.90.0120.00616.50
7.4.80.0120.00016.16
7.4.70.0100.00516.26
7.4.60.0110.00816.21
7.4.50.0180.00016.30
7.4.40.0120.00616.22
7.4.30.0150.00016.32
7.4.20.0120.00316.36
7.4.10.0170.00016.33
7.4.00.0080.00816.30

preferences:
26.8 ms | 403 KiB | 5 Q