3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function b(string $c) {} $arr = []; try { b($arr['lol']); } catch (\Throwable $e) { var_dump($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.1.60.0030.00517.51
8.1.50.0000.00917.41
8.1.40.0080.00817.44
8.1.30.0070.00617.64
8.1.20.0100.00817.60
8.1.10.0140.00417.52
8.1.00.0170.00417.45
8.0.190.0060.00316.95
8.0.180.0040.00416.82
8.0.170.0080.00516.79
8.0.160.0080.00616.91
8.0.150.0130.00416.73
8.0.140.0120.00616.75
8.0.130.0140.00315.59
8.0.120.0110.00616.81
8.0.110.0140.00316.75
8.0.100.0130.00416.85
8.0.90.0110.00616.88
8.0.80.0160.00116.84
8.0.70.0100.00616.77
8.0.60.0090.00916.83
8.0.50.0150.00216.87
8.0.30.0150.00216.80
8.0.20.0090.00916.89
8.0.10.0140.00417.00
8.0.00.0050.00517.02
7.4.290.0030.00616.49
7.4.280.0090.00516.54
7.4.270.0170.00416.51
7.4.260.0140.00315.43
7.4.250.0130.00616.47
7.4.240.0140.00416.53
7.4.230.0130.00516.41
7.4.220.0140.00316.53
7.4.210.0120.00516.53
7.4.200.0130.00516.59
7.4.190.0140.00316.64
7.4.180.0120.00416.53
7.4.160.0090.00716.55
7.4.150.0140.00216.42
7.4.140.0110.00516.47
7.4.130.0120.00416.42
7.4.120.0090.00816.46
7.4.110.0110.00416.37
7.4.100.0130.00316.46
7.4.90.0100.00516.40
7.4.80.0090.00616.40
7.4.70.0090.00716.46
7.4.60.0130.00316.36
7.4.50.0090.00616.26
7.4.40.0100.00316.33
7.4.30.0070.00716.40
7.4.20.0090.00116.36
7.4.10.0020.00716.38
7.4.00.0040.00616.50
7.3.330.0140.00316.30
7.3.320.0120.00415.33
7.3.310.0100.00716.35
7.3.300.0140.00316.28
7.3.290.0130.00316.28
7.3.280.0090.00816.27
7.3.270.0120.00516.25
7.3.260.0160.00016.24
7.3.250.0140.00216.19
7.3.240.0110.00616.29
7.3.230.0130.00416.22
7.3.220.0110.00616.11
7.3.210.0120.00516.22
7.3.200.0120.00416.18
7.3.190.0100.00716.15
7.3.180.0130.00616.21
7.3.170.0120.00416.14
7.3.160.0120.00416.26
7.3.150.0100.00516.13
7.3.140.0130.00216.13
7.3.130.0080.00816.23
7.3.120.0120.00416.29
7.3.110.0100.00616.15
7.3.100.0110.00516.19
7.3.90.0130.00316.39
7.3.80.0150.00216.13
7.3.70.0100.00716.33
7.3.60.0130.00516.41
7.3.50.0110.00616.44
7.3.40.0120.00416.33
7.3.30.0120.00516.35
7.3.20.0160.00116.93
7.3.10.0160.00417.54
7.3.00.0130.00517.56

preferences:
25.71 ms | 413 KiB | 13 Q