3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { try { throw new Exception('base exception'); } catch (Throwable $t) { throw new Exception('event exception'); } finally { return $t->getMessage(); } } echo a();

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.00819.61
8.5.20.0070.01020.18
8.5.10.0140.00521.72
8.5.00.0130.00819.91
8.4.180.0120.01019.80
8.4.170.0070.00523.94
8.4.160.0130.01019.75
8.4.150.0020.00014.05
8.4.140.0120.00917.72
8.4.130.0050.00517.89
8.4.120.0070.00923.89
8.4.110.0080.00222.67
8.4.100.0030.00518.75
8.4.90.0110.01018.68
8.4.80.0120.00518.72
8.4.70.0130.00618.02
8.4.60.0120.00818.61
8.4.50.0070.00318.53
8.4.40.0070.00318.05
8.4.30.0120.00618.70
8.4.20.0160.00324.05
8.4.10.0090.00623.88
8.3.300.0130.00720.75
8.3.290.0120.01120.75
8.3.280.0100.01018.33
8.3.270.0130.01116.49
8.3.260.0120.00716.51
8.3.250.0040.00418.80
8.3.240.0110.00817.30
8.3.230.0100.00816.77
8.3.220.0090.00818.72
8.3.210.0120.00816.50
8.3.200.0070.00216.48
8.3.190.0090.01016.75
8.3.180.0100.00917.07
8.3.170.0030.01620.79
8.3.160.0110.00717.01
8.3.150.0110.00717.00
8.3.140.0130.00616.88
8.3.130.0110.01116.59
8.3.120.0000.00820.79
8.3.110.0060.00320.94
8.3.100.0160.00024.06
8.3.90.0050.00326.77
8.3.80.0000.01418.30
8.3.70.0030.01418.43
8.3.60.0180.00416.49
8.3.50.0110.01116.71
8.3.40.0110.00419.95
8.3.30.0160.00018.98
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0050.00326.16
8.2.300.0130.00720.37
8.2.290.0070.01020.34
8.2.280.0110.00920.08
8.2.270.0130.00617.04
8.2.260.0040.00416.64
8.2.250.0080.00018.59
8.2.240.0090.00017.12
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0070.00316.63
8.2.190.0090.00618.41
8.2.180.0120.00616.88
8.2.170.0140.00318.86
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0070.00420.96
8.2.100.0120.00017.91
8.2.90.0070.00417.84
8.2.80.0030.00619.64
8.2.70.0040.00417.63
8.2.60.0080.00017.63
8.2.50.0040.00417.55
8.2.40.0120.00517.72
8.2.30.0140.00317.74
8.2.20.0130.00417.72
8.2.10.0130.00217.72
8.2.00.0100.00517.72
8.1.340.0100.00921.85
8.1.330.0100.00921.96
8.1.320.0060.00216.21
8.1.310.0050.00316.69
8.1.300.0090.00020.12
8.1.290.0040.00730.84
8.1.280.0120.00925.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0080.00022.46
8.1.230.0040.00720.97
8.1.220.0060.00317.74
8.1.210.0040.00418.97
8.1.200.0080.00017.48
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0100.00417.72
8.1.160.0100.00417.72
8.1.150.0100.00517.72
8.1.140.0080.00817.72
8.1.130.0070.00717.72
8.1.120.0130.00217.72
8.1.110.0100.00617.72
8.1.100.0100.00717.72
8.1.90.0120.00317.72
8.1.80.0110.00317.72
8.1.70.0090.00617.72
8.1.60.0110.00517.72
8.1.50.0140.00317.72
8.1.40.0100.00917.72
8.1.30.0100.00817.72
8.1.20.0100.00617.72
8.1.10.0110.00617.72
8.1.00.0120.00317.72
8.0.300.0070.00019.97
8.0.290.0040.00416.63
8.0.280.0070.00817.72
8.0.270.0050.01017.72
8.0.260.0130.00217.72
8.0.250.0130.00217.72
8.0.240.0120.00417.72
8.0.230.0120.00517.72
8.0.220.0040.01117.72
8.0.210.0070.00717.72
8.0.200.0090.00517.72
8.0.190.0130.00217.72
8.0.180.0130.00217.72
8.0.170.0130.00217.72
8.0.160.0110.00317.72
8.0.150.0100.00617.72
8.0.140.0120.00317.72
8.0.130.0120.00317.72
8.0.120.0110.00317.72
8.0.110.0100.00617.72
8.0.100.0110.00517.72
8.0.90.0120.00217.72
8.0.80.0100.00517.72
8.0.70.0110.00417.72
8.0.60.0070.00917.72
8.0.50.0100.00517.72
8.0.30.0050.00817.72
8.0.20.0080.00717.72
8.0.10.0090.00517.72

preferences:
124.04 ms | 403 KiB | 5 Q