3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { try { throw new Exception('Foo'); } finally { throw new Exception('Bar', 0, null); } } catch (Exception $e) { throw new Exception('Zot', 0, $e); } } catch(Exception $exception) { $foo = $exception; while ($actualPrevious = $foo->getPrevious()) { $previous++; echo "Previous $previous\n"; var_dump($foo); } }

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.0230.00318.57
8.3.50.0200.00822.06
8.3.40.0240.00318.92
8.3.30.0220.01819.18
8.3.20.0110.00320.20
8.3.10.0100.01023.56
8.3.00.0160.00019.38
8.2.180.0130.01316.32
8.2.170.0170.01022.96
8.2.160.0170.01419.16
8.2.150.0190.00024.18
8.2.140.0180.00424.66
8.2.130.0180.00426.16
8.2.120.0120.00322.27
8.2.110.0120.00322.07
8.2.100.0180.00920.40
8.2.90.0040.01119.05
8.2.80.0070.00417.97
8.2.70.0100.01017.38
8.2.60.0040.01217.68
8.2.50.0140.00318.07
8.2.40.0140.00018.28
8.2.30.0070.00718.09
8.2.20.0080.00417.85
8.2.10.0050.00918.21
8.2.00.0040.00817.88
8.1.280.0160.01025.92
8.1.270.0140.00923.84
8.1.260.0150.00626.35
8.1.250.0070.00728.09
8.1.240.0060.00922.13
8.1.230.0250.00019.11
8.1.220.0070.00317.77
8.1.210.0040.00718.77
8.1.200.0040.00917.35
8.1.190.0030.01017.35
8.1.180.0000.01418.10
8.1.170.0090.00418.45
8.1.160.0060.00622.10
8.1.150.0130.00019.04
8.1.140.0030.00717.45
8.1.130.0090.00317.85
8.1.120.0080.00817.55
8.1.110.0090.00017.44
8.1.100.0030.01017.45
8.1.90.0040.00917.58
8.1.80.0080.00417.59
8.1.70.0100.00317.41
8.1.60.0040.01117.55
8.1.50.0070.00717.63
8.1.40.0030.01417.59
8.1.30.0080.00417.68
8.1.20.0090.00417.74
8.1.10.0050.01017.64
8.1.00.0070.00717.61
8.0.300.0080.00418.77
8.0.290.0040.01116.75
8.0.280.0070.00418.39
8.0.270.0000.00916.77
8.0.260.0070.00417.28
8.0.250.0030.00616.97
8.0.240.0120.00017.02
8.0.230.0000.00816.90
8.0.220.0090.00616.98
8.0.210.0000.01216.82
8.0.200.0130.00316.85
8.0.190.0060.00616.80
8.0.180.0030.01016.95
8.0.170.0090.00516.97
8.0.160.0090.00416.93
8.0.150.0000.01716.85
8.0.140.0000.00916.89
8.0.130.0000.01213.38
8.0.120.0090.00416.84
8.0.110.0110.00416.82
8.0.100.0040.00816.84
8.0.90.0120.00016.83
8.0.80.0120.03416.79
8.0.70.0000.00916.66
8.0.60.0120.00016.80
8.0.50.0060.00916.91
8.0.30.0420.01717.06
8.0.20.0510.03517.40
8.0.10.0030.00616.85
8.0.00.0430.02516.70
7.4.330.0080.00815.00
7.4.320.0120.00016.55
7.4.300.0040.00716.30
7.4.290.0070.00616.41
7.4.280.0070.00316.48
7.4.270.0030.00616.30
7.4.260.0060.01216.30
7.4.250.0090.00916.29
7.4.240.0080.00416.50
7.4.230.0040.01116.30
7.4.220.0190.02216.57
7.4.210.0130.01616.57
7.4.200.0070.00316.60
7.4.160.0620.01816.43
7.4.150.0490.02517.40
7.4.140.0620.02017.86
7.4.130.0330.01316.37
7.4.120.0310.02116.46
7.4.110.0750.01516.34
7.4.100.0800.03916.45
7.4.90.0340.02216.40
7.4.80.0130.02919.39
7.4.70.0330.01016.45
7.4.60.0060.04616.46
7.4.50.0100.00316.31
7.4.40.0470.01016.21
7.4.30.0320.01616.48
7.4.00.0130.01914.93
7.3.330.0040.00413.19
7.3.320.0030.00613.15
7.3.310.0070.00416.09
7.3.300.0080.00316.26
7.3.290.0210.01516.25
7.3.280.0140.02316.22
7.3.270.0630.01117.40
7.3.260.0460.01616.66
7.3.250.0580.01916.39
7.3.240.0280.03816.61
7.3.230.0400.01916.39
7.3.210.0490.02616.13
7.3.200.0150.02119.39
7.3.190.0310.01216.54
7.3.180.0160.01216.36
7.3.170.0330.00716.29
7.3.160.0470.02016.47
7.2.330.0540.02416.74
7.2.320.0230.01116.53
7.2.310.0260.03016.71
7.2.300.0270.02016.71
7.2.290.0210.02116.28
7.2.00.0140.00719.28
7.1.200.0140.01115.79
7.1.100.0140.00718.02
7.1.70.0030.01017.23
7.1.60.0210.01719.32
7.1.50.0140.01417.02
7.0.200.0070.00716.93

preferences:
71.53 ms | 401 KiB | 5 Q