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.3.60.0120.00318.31
8.3.50.0140.00018.17
8.3.40.0030.01521.76
8.3.30.0090.00618.59
8.3.20.0070.01124.18
8.3.10.0000.00724.66
8.3.00.0080.00026.16
8.2.180.0090.00625.92
8.2.170.0060.00919.00
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.92
8.2.110.0100.00019.39
8.2.100.0060.00617.72
8.2.90.0050.00218.03
8.2.80.0040.00418.09
8.2.70.0000.00817.63
8.2.60.0000.00817.50
8.2.50.0080.00017.51
8.2.40.0110.00017.63
8.2.30.0000.00818.05
8.2.20.0020.00518.04
8.2.10.0030.00620.60
8.2.00.0030.00319.11
8.1.280.0040.01125.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00420.72
8.1.230.0000.01120.96
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0090.00017.10
8.1.180.0040.00418.10
8.1.170.0000.00718.90
8.1.160.0070.00018.93
8.1.150.0040.00418.51
8.1.140.0080.00020.79
8.1.130.0000.00718.86
8.1.120.0000.00717.29
8.1.110.0070.00417.32
8.1.100.0040.00417.36
8.1.90.0040.00317.39
8.1.80.0060.00317.40
8.1.70.0000.00717.39
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.300.0000.00719.89
8.0.290.0000.00916.88
8.0.280.0040.00418.41
8.0.270.0050.00217.93
8.0.260.0030.00318.66
8.0.250.0030.00316.96
8.0.240.0040.00416.83
8.0.230.0030.00416.94
8.0.220.0020.00516.80
8.0.210.0030.00316.89
8.0.200.0030.00316.93
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.330.0000.00515.55
7.4.320.0000.00616.44
7.4.300.0000.00716.50
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:
55.44 ms | 400 KiB | 5 Q