3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function () { throw new Exception('sigh'); }); try{ $array['a'] += 2; var_dump($array); } catch(Throwable){ echo 'yes you can'; }

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.5.30.0100.00717.41
8.5.20.0070.01020.25
8.5.10.0150.00816.73
8.5.00.0140.00820.02
8.4.180.0130.00919.77
8.4.170.0180.00823.84
8.4.160.0140.01023.85
8.4.150.0060.00616.90
8.4.140.0170.00417.71
8.4.130.0060.00317.99
8.4.120.0090.00722.33
8.4.110.0140.00622.39
8.4.100.0160.00617.69
8.4.90.0140.00718.50
8.4.80.0120.00818.03
8.4.70.0080.00717.95
8.4.60.0130.00917.98
8.4.50.0070.00919.64
8.4.40.0040.00417.55
8.4.30.0090.00920.52
8.4.20.0130.00617.74
8.4.10.0050.00320.63
8.3.300.0110.01019.16
8.3.290.0100.01020.80
8.3.280.0110.00918.38
8.3.270.0140.00516.75
8.3.260.0100.01016.69
8.3.250.0110.00819.04
8.3.240.0100.00816.60
8.3.230.0060.00916.97
8.3.220.0090.00817.05
8.3.210.0120.00616.66
8.3.200.0030.00416.75
8.3.190.0100.00916.64
8.3.180.0080.00816.55
8.3.170.0110.00716.59
8.3.160.0110.00716.57
8.3.150.0120.00617.17
8.3.140.0050.00316.79
8.3.130.0110.00016.55
8.3.120.0040.00419.23
8.3.110.0090.00020.94
8.3.100.0070.00316.46
8.3.90.0050.00316.85
8.3.80.0090.00319.36
8.3.70.0000.01516.88
8.3.60.0090.00918.30
8.3.50.0110.00824.43
8.3.40.0100.00720.33
8.3.30.0070.01518.77
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.300.0110.00922.21
8.2.290.0060.00520.36
8.2.280.0120.00616.67
8.2.270.0040.01416.78
8.2.260.0140.00418.90
8.2.250.0060.00318.78
8.2.240.0000.00918.86
8.2.230.0070.00322.58
8.2.220.0050.00324.06
8.2.210.0110.00426.77
8.2.200.0090.00018.54
8.2.190.0110.00716.63
8.2.180.0030.01625.92
8.2.170.0070.00719.08
8.2.160.0110.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0060.00317.80
8.2.110.0060.00320.52
8.2.100.0060.00319.14
8.1.340.0130.00817.82
8.1.330.0090.00921.75
8.1.320.0160.00418.09
8.1.310.0000.00818.69
8.1.300.0030.00516.21
8.1.290.0090.00018.88
8.1.280.0150.00025.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00318.69
8.1.230.0000.00819.01
7.4.100.0070.00916.47
7.4.90.0070.01616.41
7.4.80.0140.00816.24
7.4.70.0140.01116.28
7.4.60.0030.02116.18
7.4.50.0140.01016.06
7.4.40.0140.01216.40
7.4.30.0110.01616.37
7.4.20.0100.01416.01
7.4.10.0180.00616.33
7.4.00.0050.01916.55
7.3.220.0150.00916.15
7.3.210.0180.00616.07
7.3.200.0190.00616.38
7.3.190.0120.01216.23
7.3.180.0140.00716.30
7.3.170.0060.01716.16
7.3.160.0150.01616.12
7.3.150.0110.01616.16
7.3.140.0040.01616.02
7.3.130.0180.00916.17
7.3.120.0120.01216.25
7.3.110.0070.01716.13
7.3.100.0140.01015.99
7.3.90.0080.01316.23
7.3.80.0120.01016.07
7.3.70.0060.01816.02
7.3.60.0130.00616.31
7.3.50.0130.00916.17
7.3.40.0060.01616.16
7.3.30.0120.01116.14
7.3.20.0100.01216.26
7.3.10.0120.01216.33
7.3.00.0090.01516.06
7.2.330.0060.01816.05
7.2.320.0110.01416.59
7.2.310.0160.00616.45
7.2.300.0110.01416.55
7.2.290.0090.01916.23
7.2.280.0110.01215.99
7.2.270.0100.01916.03
7.2.260.0070.01516.15
7.2.250.0090.01615.98
7.2.240.0120.01416.37
7.2.230.0190.00416.03
7.2.220.0140.01016.34
7.2.210.0150.00916.50
7.2.200.0090.01616.17
7.2.190.0110.01116.39
7.2.180.0070.01716.23
7.2.170.0110.01216.35
7.2.160.0100.01216.23
7.2.150.0090.01516.23
7.2.140.0080.01416.24
7.2.130.0100.01416.53
7.2.120.0120.01116.36
7.2.110.0060.01616.47
7.2.100.0090.01316.38
7.2.90.0180.00316.39
7.2.80.0140.01016.51
7.2.70.0090.01216.23
7.2.60.0120.01516.47
7.2.50.0120.01516.52
7.2.40.0170.01216.29
7.2.30.0190.00616.28
7.2.20.0150.00916.38
7.2.10.0170.01216.33
7.2.00.0140.00816.41

preferences:
46.97 ms | 1129 KiB | 5 Q