3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AException extends \Exception {} class T extends \RuntimeException{ public function __construct($message, AException $e) { parent::__construct($message, $e->getCode(), $e); } } try { throw new T("CRAP", new AException); } catch (\Exception $e) { var_dump($e); // It's not of type AException any more }

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.4.120.0090.00920.74
8.4.110.0040.00522.51
8.4.100.0080.00817.99
8.4.90.0090.01217.73
8.4.80.0130.00718.12
8.4.70.0140.00817.99
8.4.60.0130.00418.03
8.4.50.0060.01618.38
8.4.40.0160.00624.11
8.4.30.0080.00019.61
8.4.20.0150.00617.86
8.4.10.0030.01719.57
8.3.250.0130.00618.93
8.3.240.0130.00716.63
8.3.230.0140.00516.74
8.3.220.0030.00517.22
8.3.210.0150.00516.58
8.3.200.0100.01018.86
8.3.190.0140.00616.48
8.3.180.0100.00618.25
8.3.170.0120.00620.85
8.3.160.0110.00820.10
8.3.150.0040.01117.16
8.3.140.0040.01516.98
8.3.130.0000.00918.43
8.3.120.0080.01119.08
8.3.110.0040.00416.53
8.3.100.0110.00416.61
8.3.90.0080.00026.77
8.3.80.0060.00319.36
8.3.70.0030.01316.59
8.3.60.0120.00618.39
8.3.50.0080.00816.60
8.3.40.0090.00618.71
8.3.30.0120.00418.90
8.3.20.0090.00019.10
8.3.10.0080.00021.68
8.3.00.0080.00019.60
8.2.290.0100.00820.24
8.2.280.0120.00918.49
8.2.270.0180.00017.37
8.2.260.0080.00016.55
8.2.250.0170.00318.62
8.2.240.0060.00318.98
8.2.230.0040.01420.94
8.2.220.0040.00424.06
8.2.210.0000.00726.77
8.2.200.0060.00318.88
8.2.190.0170.00416.63
8.2.180.0110.00416.50
8.2.170.0120.00322.96
8.2.160.0070.00720.57
8.2.150.0000.00825.66
8.2.140.0090.00024.66
8.2.130.0050.00320.36
8.2.120.0040.00426.35
8.2.110.0090.00020.39
8.2.100.0030.00917.71
8.2.90.0080.00019.09
8.2.80.0080.00017.97
8.2.70.0050.00317.75
8.2.60.0030.00617.91
8.2.50.0040.00418.10
8.2.40.0060.00322.15
8.2.30.0050.00319.30
8.2.20.0030.00618.00
8.2.10.0040.00417.94
8.2.00.0040.00417.93
8.1.330.0130.00816.73
8.1.320.0090.01015.93
8.1.310.0090.00618.31
8.1.300.0030.00619.64
8.1.290.0060.00330.84
8.1.280.0040.01225.92
8.1.270.0080.00024.00
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00023.98
8.1.230.0110.00017.82
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00917.24
8.1.190.0080.00017.23
8.1.180.0030.00518.10
8.1.170.0000.00818.51
8.1.160.0030.00319.01
8.1.150.0000.00720.53
8.1.140.0030.00719.51
8.1.130.0000.00718.89
8.1.120.0000.00817.36
8.1.110.0080.00017.29
8.1.100.0000.00817.36
8.1.90.0000.01017.49
8.1.80.0000.00717.42
8.1.70.0070.00017.32
8.1.60.0040.00417.47
8.1.50.0000.00817.40
8.1.40.0000.00817.54
8.1.30.0060.00317.56
8.1.20.0000.00817.66
8.1.10.0060.00317.57
8.1.00.0040.00417.55
8.0.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0040.00418.38
8.0.270.0040.00417.24
8.0.260.0030.00316.70
8.0.250.0060.00016.86
8.0.240.0040.00416.93
8.0.230.0030.00316.86
8.0.220.0030.00316.88
8.0.210.0050.00316.93
8.0.200.0000.00616.99
8.0.190.0030.00516.99
8.0.180.0000.00716.81
8.0.170.0000.00716.83
8.0.160.0070.00416.90
8.0.150.0040.00416.79
8.0.140.0040.00416.93
8.0.130.0000.00713.35
8.0.120.0040.00416.89
8.0.110.0000.00716.88
8.0.100.0040.00416.85
8.0.90.0040.00416.94
8.0.80.0050.01016.95
8.0.70.0070.00016.82
8.0.60.0070.00016.93
8.0.50.0040.00416.88
8.0.30.0120.00617.08
8.0.20.0120.00817.40
8.0.10.0070.00017.07
8.0.00.0110.00916.73
7.4.330.0030.00315.55
7.4.320.0030.00316.51
7.4.300.0000.00616.64
7.4.290.0030.00616.59
7.4.280.0060.00316.61
7.4.270.0030.00616.59
7.4.260.0070.00013.29
7.4.250.0040.00416.61
7.4.240.0070.00016.62
7.4.230.0000.00716.32
7.4.220.0040.01516.62
7.4.210.0040.01316.60
7.4.200.0080.00016.59
7.4.160.0100.01016.48
7.4.150.0180.00317.40
7.4.140.0110.01117.86
7.4.130.0160.00416.52
7.4.120.0060.01316.48
7.4.110.0140.00416.61
7.4.100.0100.00716.40
7.4.90.0070.01016.41
7.4.80.0080.00819.39
7.4.70.0100.00716.71
7.4.60.0140.00316.52
7.4.50.0030.00916.30
7.4.40.0140.00416.54
7.4.30.0060.01016.32
7.4.00.0030.01014.83
7.3.330.0000.00513.38
7.3.320.0000.00513.16
7.3.310.0000.00716.43
7.3.300.0040.00416.33
7.3.290.0000.00616.39
7.3.280.0090.00916.36
7.3.270.0120.00617.40
7.3.260.0090.00916.50
7.3.250.0100.01216.57
7.3.240.0100.01116.50
7.3.230.0050.01316.42
7.3.210.0160.00016.43
7.3.200.0130.00816.31
7.3.190.0150.00316.54
7.3.180.0030.01316.51
7.3.170.0030.01616.45
7.3.160.0070.01016.39
7.2.330.0120.00616.70
7.2.320.0060.01016.50
7.2.310.0090.00916.70
7.2.300.0120.01116.37
7.2.290.0140.00416.69
7.2.60.0030.01316.75
7.2.00.0030.00919.35
7.1.200.0080.00315.84
7.1.100.0000.01417.60
7.1.70.2930.01015.30
7.1.60.2630.01033.03
7.1.50.2070.01332.88
7.1.40.2330.01732.77
7.1.30.3230.02032.75
7.1.20.2430.01732.60
7.1.10.2670.01314.84
7.1.00.2430.01014.72
7.0.200.2900.00715.07
7.0.190.2700.01715.01
7.0.180.2070.00714.27
7.0.170.4070.00714.34
7.0.160.2870.01014.59
7.0.150.3100.01314.47
7.0.140.2470.01014.46
7.0.130.2270.01314.68
7.0.120.2470.01314.65
7.0.110.2870.01314.38
7.0.100.1770.01714.46
7.0.90.2300.01314.37
7.0.80.2730.01714.56
7.0.70.2070.01314.41
7.0.60.1930.01014.17
7.0.50.2630.01014.63
7.0.40.1800.01014.58
7.0.30.2570.01314.62
7.0.20.2470.01014.75
7.0.10.2600.01014.46
7.0.00.2500.00714.60

preferences:
72.92 ms | 403 KiB | 5 Q