3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function (): string { try { throw new \Exception('foo'); } finally { throw new \Exception('bar'); } }; try { var_dump($f()); } catch (\Throwable $e) { var_dump($e->getMessage()); var_dump($e->getPrevious()->getMessage()); }

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.0070.01019.55
8.5.20.0100.00819.61
8.5.10.0080.00916.97
8.5.00.0120.01020.18
8.4.180.0100.01819.68
8.4.170.0170.00620.32
8.4.160.0150.00823.86
8.4.150.0050.00116.94
8.4.140.0060.01517.65
8.4.130.0070.00618.84
8.4.120.0110.00823.92
8.4.110.0100.01020.46
8.4.100.0100.00918.90
8.4.90.0050.00320.56
8.4.80.0090.00518.77
8.4.70.0060.00418.87
8.4.60.0110.00919.03
8.4.50.0140.00718.93
8.4.40.0030.01217.66
8.4.30.0030.01320.51
8.4.20.0100.01019.91
8.4.10.0120.00919.36
8.3.300.0100.00920.72
8.3.290.0130.00820.75
8.3.280.0140.00718.39
8.3.270.0110.00816.64
8.3.260.0050.00316.69
8.3.250.0080.01119.12
8.3.240.0110.01017.28
8.3.230.0100.00916.53
8.3.220.0060.00318.87
8.3.210.0100.00916.88
8.3.200.0050.00416.67
8.3.190.0120.00717.30
8.3.180.0110.00518.76
8.3.170.0070.00718.93
8.3.160.0120.00616.98
8.3.150.0150.00416.75
8.3.140.0060.00319.04
8.3.130.0080.00018.29
8.3.120.0040.00418.87
8.3.110.0040.01120.94
8.3.100.0040.01116.78
8.3.90.0110.00426.77
8.3.80.0060.00319.36
8.3.70.0190.00316.88
8.3.60.0000.01516.50
8.3.50.0100.01017.97
8.3.40.0040.01218.92
8.3.30.0070.01118.66
8.3.20.0070.00024.18
8.3.10.0060.00324.66
8.3.00.0000.00826.16
8.2.300.0120.00822.26
8.2.290.0050.00820.48
8.2.280.0100.00918.77
8.2.270.0090.00916.67
8.2.260.0080.00016.96
8.2.250.0040.00417.00
8.2.240.0090.00017.38
8.2.230.0030.01022.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0030.00618.88
8.2.190.0120.00618.45
8.2.180.0070.01425.92
8.2.170.0120.00318.91
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00826.35
8.2.110.0100.00022.12
8.2.100.0070.00717.70
8.2.90.0030.00517.88
8.2.80.0030.00618.96
8.2.70.0090.00017.75
8.2.60.0000.00817.68
8.2.50.0050.00318.05
8.2.40.0000.00718.03
8.2.30.0040.00417.98
8.2.20.0040.00418.08
8.2.10.0050.00321.11
8.2.00.0000.00819.31
8.1.340.0080.01217.73
8.1.330.0120.00922.28
8.1.320.0130.00716.01
8.1.310.0060.01016.14
8.1.300.0120.00316.84
8.1.290.0060.00330.84
8.1.280.0070.01025.92
8.1.270.0070.00024.01
8.1.260.0030.00628.09
8.1.250.0080.00028.09
8.1.240.0000.01022.53
8.1.230.0090.00319.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.25
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0000.00818.70
8.1.160.0030.00519.08
8.1.150.0050.00318.96
8.1.140.0030.00518.96
8.1.130.0030.00320.20
8.1.120.0030.00317.46
8.1.110.0030.00517.41
8.1.100.0000.00817.50
8.1.90.0020.00517.39
8.1.80.0030.00517.55
8.1.70.0030.00617.45
8.1.60.0030.00517.62
8.1.50.0050.00317.53
8.1.40.0000.00817.55
8.1.30.0070.00417.65
8.1.20.0050.00317.70
8.1.10.0030.00917.64
8.1.00.0000.00817.55
8.0.300.0070.00019.82
8.0.290.0080.00016.63
8.0.280.0030.00318.30
8.0.270.0000.00717.91
8.0.260.0070.00018.32
8.0.250.0030.00316.95
8.0.240.0000.00616.97
8.0.230.0030.00316.94
8.0.220.0030.00316.84
8.0.210.0070.00016.87
8.0.200.0000.00717.02
8.0.190.0000.00817.01
8.0.180.0060.00316.88
8.0.170.0060.00316.89
8.0.160.0000.00716.89
8.0.150.0040.00416.90
8.0.140.0040.00416.95
8.0.130.0060.00013.39
8.0.120.0060.00316.80
8.0.110.0040.00416.91
8.0.100.0070.00016.86
8.0.90.0000.00816.95
8.0.80.0070.00816.90
8.0.70.0000.00716.75
8.0.60.0000.00817.02
8.0.50.0070.00016.90
8.0.30.0110.00816.89
8.0.20.0000.01817.06
8.0.10.0100.01017.06
8.0.00.0030.01217.14
7.4.330.0000.00615.55
7.4.320.0030.00516.66
7.4.300.0000.00716.50
7.4.290.0020.00516.49
7.4.280.0040.00416.64
7.4.270.0050.00316.59
7.4.260.0030.00313.26
7.4.250.0070.00016.52
7.4.240.0030.00316.54
7.4.230.0040.00416.50
7.4.220.0000.00716.45
7.4.210.0120.00516.51
7.4.200.0000.00716.71
7.4.160.0070.01416.53
7.4.150.0080.01616.52
7.4.140.0030.01216.55
7.4.130.0070.00816.49
7.4.120.0120.00616.53
7.4.110.0040.01416.39
7.4.100.0030.01216.54
7.4.90.0090.00616.59
7.4.80.0100.00516.35
7.4.70.0060.00916.47
7.4.60.0140.00016.38
7.4.50.0080.00816.31
7.4.40.0120.00316.33
7.4.30.0110.00916.35
7.4.20.0140.00616.47
7.4.10.0090.00916.42
7.4.00.0070.01016.61
7.3.330.0040.00416.30
7.3.320.0060.00013.25
7.3.310.0030.00316.40
7.3.300.0000.00616.31
7.3.290.0050.01016.26
7.3.270.0040.01216.25
7.3.260.0030.01316.30
7.3.250.0090.00916.31
7.3.240.0040.01116.28
7.3.230.0090.01016.29
7.3.220.0080.00816.25
7.3.210.0030.01516.29
7.3.200.0160.00316.31
7.3.190.0090.00616.25
7.3.180.0060.00916.24
7.3.170.0000.01616.29
7.3.160.0110.00416.36
7.3.150.0060.00916.33
7.3.140.0070.01016.25
7.3.130.0120.00316.33
7.3.120.0100.01016.25
7.3.110.0140.00716.20
7.3.100.0030.01516.17
7.3.90.0060.00916.43
7.3.80.0070.01316.23
7.3.70.0050.01616.31
7.3.60.0100.01116.47
7.3.50.0080.01116.47
7.3.40.0130.00616.38
7.3.30.0130.00316.39
7.3.20.0180.00416.38
7.3.10.0140.00516.26
7.3.00.0230.01216.27

preferences:
91.97 ms | 1362 KiB | 5 Q