3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PreviousException extends \Exception {} class One extends \RuntimeException { // Just a standard exception } class Two extends \RuntimeException{ // An exception with custom constructor parameters public function __construct($customMessage, PreviousException $e) { parent::__construct($customMessage . "LOL", $e->getCode(), $e); } } try { throw new Two('Throwing two, but catch will receive a different class type', new One()); } catch (\Exception $e) { var_dump($e); }

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.0120.00918.68
8.3.50.0120.00316.25
8.3.40.0130.01018.79
8.3.30.0060.00918.70
8.3.20.0040.00420.31
8.3.10.0080.00021.95
8.3.00.0040.00417.65
8.2.180.0090.00618.18
8.2.170.0040.01122.96
8.2.160.0070.00720.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00021.00
8.2.110.0080.00420.52
8.2.100.0030.00917.84
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0050.00317.38
8.2.60.0050.00317.79
8.2.50.0080.00018.10
8.2.40.0000.00822.08
8.2.30.0050.00320.85
8.2.20.0040.00417.90
8.2.10.0000.00717.89
8.2.00.0000.00718.09
8.1.280.0110.00425.92
8.1.270.0050.00322.19
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00020.89
8.1.230.0040.00719.15
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0030.00717.35
8.1.190.0000.00817.34
8.1.180.0030.00618.10
8.1.170.0040.00418.46
8.1.160.0070.00019.00
8.1.150.0070.00020.57
8.1.140.0070.00019.55
8.1.130.0000.00718.78
8.1.120.0000.00817.41
8.1.110.0050.00317.26
8.1.100.0040.00417.30
8.1.90.0000.00717.41
8.1.80.0030.00317.40
8.1.70.0030.00317.23
8.1.60.0040.00417.53
8.1.50.0000.00817.48
8.1.40.0030.00617.42
8.1.30.0000.00717.48
8.1.20.0050.00217.73
8.1.10.0040.00417.60
8.1.00.0030.00617.50
8.0.300.0040.00418.77
8.0.290.0050.00516.63
8.0.280.0000.00718.44
8.0.270.0030.00617.30
8.0.260.0000.00816.83
8.0.250.0000.00716.97
8.0.240.0000.00716.88
8.0.230.0000.00816.95
8.0.220.0070.00016.96
8.0.210.0000.00716.87
8.0.200.0000.00617.02
8.0.190.0030.00516.86
8.0.180.0040.00416.89
8.0.170.0040.00416.91
8.0.160.0050.00316.88
8.0.150.0050.00216.95
8.0.140.0030.00416.87
8.0.130.0050.00013.32
8.0.120.0040.00416.94
8.0.110.0040.00416.77
8.0.100.0000.00716.83
8.0.90.0040.00316.77
8.0.80.0070.01116.84
8.0.70.0040.00416.68
8.0.60.0000.00816.75
8.0.50.0000.00716.84
8.0.30.0100.00916.98
8.0.20.0110.00917.40
8.0.10.0000.00717.00
8.0.00.0120.00916.48
7.4.330.0000.00615.55
7.4.320.0050.00316.46
7.4.300.0030.00316.56
7.4.290.0000.00716.59
7.4.280.0040.00416.50
7.4.270.0030.00316.59
7.4.260.0060.00013.28
7.4.250.0080.00016.46
7.4.240.0000.00816.52
7.4.230.0070.00016.49
7.4.220.0110.00616.61
7.4.210.0090.00616.59
7.4.200.0040.00416.54
7.4.160.0130.00316.45
7.4.150.0030.01417.40
7.4.140.0130.00717.86
7.4.130.0110.00616.39
7.4.120.0120.00916.55
7.4.110.0090.00916.35
7.4.100.0110.00716.45
7.4.90.0030.01316.42
7.4.80.0110.01119.39
7.4.70.0030.01316.59
7.4.60.0060.01016.50
7.4.50.0000.01416.62
7.4.40.0150.00416.66
7.4.30.0040.01216.54
7.4.00.0100.00714.73
7.3.330.0000.00613.34
7.3.320.0050.00013.25
7.3.310.0000.00916.32
7.3.300.0000.00716.30
7.3.290.0000.00716.25
7.3.280.0080.00916.36
7.3.270.0140.00317.40
7.3.260.0110.00616.52
7.3.250.0090.01016.39
7.3.240.0060.01116.39
7.3.230.0120.00616.58
7.3.210.0120.00416.60
7.3.200.0070.01016.31
7.3.190.0060.01516.64
7.3.180.0110.00616.62
7.3.170.0030.01716.52
7.3.160.0130.00916.52
7.3.00.0110.00416.70
7.2.330.0000.02216.80
7.2.320.0070.01116.69
7.2.310.0120.01316.68
7.2.300.0100.01316.48
7.2.290.0120.00616.64
7.2.130.0090.00316.77
7.2.120.0060.00916.74
7.2.110.0070.01016.86
7.2.100.0100.00316.72
7.2.90.0050.00516.65
7.2.80.0040.00416.73
7.2.70.0060.00616.73
7.2.60.0050.00916.70
7.2.50.0100.00716.93
7.2.40.0030.00916.46
7.2.30.0070.00716.60
7.2.20.0000.01016.77
7.2.10.0040.00716.79
7.2.00.0040.01116.84
7.1.250.0000.01415.71
7.1.240.0120.00615.38
7.1.230.0160.00415.20
7.1.220.0140.00315.58
7.1.210.0030.01315.59
7.1.200.0080.00515.54
7.1.190.0120.00315.70
7.1.180.0030.00715.68
7.1.170.0070.00715.80
7.1.160.0040.00815.75
7.1.150.0030.00515.34
7.1.140.0030.01115.40
7.1.130.0070.01015.53
7.1.120.0120.00015.52
7.1.110.0110.00715.63
7.1.100.0000.01415.71
7.1.90.0050.01115.60
7.1.80.0110.00515.56
7.1.70.0880.00715.45
7.1.60.0850.01224.34
7.1.50.0900.01424.09
7.1.40.0840.01024.07
7.1.30.1320.01024.05
7.1.20.1150.00724.14
7.1.10.0740.00715.04
7.1.00.1170.00515.09
7.0.330.0120.00614.94
7.0.320.0030.00915.38
7.0.310.0000.01215.34
7.0.300.0060.00915.11
7.0.290.0090.00915.23
7.0.280.0080.00614.92
7.0.270.0100.00315.28
7.0.260.0000.01315.02
7.0.250.0000.00814.93
7.0.240.0090.00015.33
7.0.230.0030.01114.98
7.0.220.0100.01415.09
7.0.210.0070.00715.21
7.0.200.0890.00815.07
7.0.190.1100.00815.06
7.0.180.1260.00914.76
7.0.170.1330.00514.85
7.0.160.1370.00814.67
7.0.150.0700.01114.84
7.0.140.1320.01014.69
7.0.130.1050.01014.88
7.0.120.1010.00615.00
7.0.110.1250.00914.94
7.0.100.1220.01014.90
7.0.90.1080.00814.82
7.0.80.1230.00914.87
7.0.70.1130.00814.88
7.0.60.1200.01214.69
7.0.50.1010.01015.03
7.0.40.0720.01013.83
7.0.30.0900.01013.95
7.0.20.1030.00513.74
7.0.10.0800.01413.78
7.0.00.0770.00313.76
5.6.380.0070.00414.01

preferences:
31.85 ms | 401 KiB | 5 Q