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 PreviousException()); } 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.0160.00716.50
8.3.50.0110.00416.29
8.3.40.0110.00718.82
8.3.30.0040.01118.72
8.3.20.0040.00420.34
8.3.10.0030.00521.91
8.3.00.0060.00317.72
8.2.180.0110.00716.50
8.2.170.0120.00322.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0030.00622.16
8.2.120.0060.00326.35
8.2.110.0070.00319.20
8.2.100.0040.00817.72
8.2.90.0000.00819.22
8.2.80.0050.00318.05
8.2.70.0060.00317.63
8.2.60.0080.00018.05
8.2.50.0060.00318.10
8.2.40.0000.00822.32
8.2.30.0000.00821.02
8.2.20.0000.00818.04
8.2.10.0070.00018.10
8.2.00.0070.00017.99
8.1.280.0160.01025.92
8.1.270.0040.00421.97
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.11
8.1.230.0030.00719.12
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0080.00317.38
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0000.00918.59
8.1.160.0020.00519.11
8.1.150.0040.00420.57
8.1.140.0000.00819.57
8.1.130.0000.00818.89
8.1.120.0040.00417.48
8.1.110.0000.00717.32
8.1.100.0020.00617.47
8.1.90.0080.00017.40
8.1.80.0040.00417.43
8.1.70.0000.00717.44
8.1.60.0000.00917.57
8.1.50.0000.00817.55
8.1.40.0040.00417.47
8.1.30.0000.00817.54
8.1.20.0000.00917.66
8.1.10.0000.00817.42
8.1.00.0020.00517.39
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00318.50
8.0.270.0030.00617.30
8.0.260.0040.00416.87
8.0.250.0080.00016.94
8.0.240.0030.00316.90
8.0.230.0000.00916.91
8.0.220.0030.00316.84
8.0.210.0040.00416.98
8.0.200.0000.00717.02
8.0.190.0060.00317.00
8.0.180.0080.00016.98
8.0.170.0030.00316.97
8.0.160.0050.00316.97
8.0.150.0030.00316.83
8.0.140.0000.00716.90
8.0.130.0050.00013.34
8.0.120.0040.00416.82
8.0.110.0030.00316.94
8.0.100.0050.00216.84
8.0.90.0040.00416.98
8.0.80.0030.01316.96
8.0.70.0070.00017.06
8.0.60.0040.00416.77
8.0.50.0040.00416.82
8.0.30.0100.01017.05
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0110.01116.75
7.4.330.0000.00515.55
7.4.320.0040.00416.61
7.4.300.0000.00616.55
7.4.290.0000.00716.57
7.4.280.0040.00416.50
7.4.270.0000.00716.43
7.4.260.0050.00013.32
7.4.250.0000.00716.52
7.4.240.0000.00716.52
7.4.230.0040.00416.48
7.4.220.0100.01316.67
7.4.210.0080.00716.63
7.4.200.0040.00416.29
7.4.160.0120.00816.51
7.4.150.0060.01217.40
7.4.140.0110.01017.86
7.4.130.0040.01416.66
7.4.120.0130.00716.59
7.4.110.0100.00716.49
7.4.100.0160.00816.43
7.4.90.0130.00616.61
7.4.80.0130.00419.39
7.4.70.0170.00016.37
7.4.60.0100.00616.44
7.4.50.0080.00816.53
7.4.40.0090.00916.50
7.4.30.0140.00816.49
7.4.00.0060.01214.98
7.3.330.0000.00513.35
7.3.320.0030.00313.20
7.3.310.0030.00316.37
7.3.300.0070.00016.27
7.3.290.0000.00716.33
7.3.280.0060.00916.38
7.3.270.0060.01217.40
7.3.260.0070.01216.49
7.3.250.0090.01116.50
7.3.240.0110.00716.45
7.3.230.0060.01316.49
7.3.210.0120.00616.49
7.3.200.0140.00916.60
7.3.190.0160.00416.66
7.3.180.0090.00916.60
7.3.170.0140.00716.52
7.3.160.0160.00716.48
7.3.120.0110.00714.95
7.3.110.0000.01615.04
7.3.100.0100.00614.88
7.3.90.0060.01014.98
7.3.80.0040.01115.09
7.3.70.0060.00614.69
7.3.60.0030.00915.00
7.3.50.0120.00014.92
7.3.40.0120.00415.07
7.3.30.0030.01014.86
7.3.20.0130.00016.86
7.3.10.0100.00316.59
7.3.00.0100.00316.69
7.2.330.0100.01016.76
7.2.320.0060.01316.67
7.2.310.0140.00416.46
7.2.300.0150.00316.74
7.2.290.0040.01416.56
7.2.250.0110.00714.75
7.2.240.0090.00614.79
7.2.230.0090.00915.20
7.2.220.0030.01314.98
7.2.210.0030.01315.02
7.2.200.0030.01014.98
7.2.190.0060.01014.84
7.2.180.0070.00715.14
7.2.170.0060.01015.15
7.2.160.0040.01115.03
7.2.150.0030.00717.05
7.2.140.0000.01616.75
7.2.130.0040.01116.82
7.2.120.0060.00916.95
7.2.110.0070.00716.99
7.2.100.0000.01616.96
7.2.90.0030.01217.01
7.2.80.0080.00716.66
7.2.70.0030.01017.03
7.2.60.0050.01016.84
7.2.50.0090.00516.98
7.2.40.0070.00316.71
7.2.30.0040.00916.70
7.2.20.0040.01116.99
7.2.10.0080.00816.84
7.2.00.0070.00718.17
7.1.330.0030.01415.96
7.1.320.0070.00415.94
7.1.310.0070.00715.52
7.1.300.0040.01115.80
7.1.290.0120.00615.76
7.1.280.0030.01415.75
7.1.270.0100.00015.78
7.1.260.0090.00015.67
7.1.250.0070.01015.40
7.1.240.0030.01015.54
7.1.230.0030.00615.69
7.1.220.0030.01215.90
7.1.210.0070.00315.83
7.1.200.0060.00715.67
7.1.190.0030.01015.80
7.1.180.0090.00315.66
7.1.170.0070.00715.73
7.1.160.0080.00415.88
7.1.150.0060.00615.76
7.1.140.0090.00015.88
7.1.130.0060.00915.66
7.1.120.0040.00815.70
7.1.110.0100.00315.73
7.1.100.0030.01016.74
7.1.90.0030.00715.75
7.1.80.0060.00615.73
7.1.70.0970.00915.43
7.1.60.1100.00924.66
7.1.50.1570.00924.40
7.1.40.1040.01024.12
7.1.30.0320.01624.23
7.1.20.1170.01024.04
7.1.10.1200.01015.15
7.1.00.0780.01115.31
7.0.330.0050.00315.36
7.0.320.0100.00315.38
7.0.310.0070.00715.14
7.0.300.0110.00315.48
7.0.290.0060.00615.31
7.0.280.0070.00715.28
7.0.270.0040.01115.61
7.0.260.0030.00715.43
7.0.250.0060.00615.43
7.0.240.0040.01115.52
7.0.230.0000.01115.45
7.0.220.0070.00315.16
7.0.210.0100.00315.49
7.0.200.1170.00815.14
7.0.190.1030.00815.04
7.0.180.1250.00814.78
7.0.170.1420.01014.85
7.0.160.0270.00514.88
7.0.150.0190.00615.00
7.0.140.0190.00914.92
7.0.130.1150.00915.03
7.0.120.1030.01215.09
7.0.110.0210.00915.02
7.0.100.0650.01314.84
7.0.90.1000.00814.98
7.0.80.0180.00814.99
7.0.70.0880.00814.96
7.0.60.0080.00514.97
7.0.50.0820.00714.92
7.0.40.0060.00913.81
7.0.30.0050.00814.07
7.0.20.0280.01514.02
7.0.10.0080.01113.92
7.0.00.0770.01214.17
5.6.400.0000.01513.96
5.6.390.0080.00814.27
5.6.380.0030.00714.32
5.6.370.0000.01214.08
5.6.360.0120.00314.34
5.6.350.0030.01014.20
5.6.340.0030.00714.27
5.6.330.0060.00614.56
5.6.320.0080.00814.53
5.6.310.0000.01414.04
5.6.300.0030.01014.30
5.6.290.0060.01014.52
5.6.280.0040.00714.41
5.6.270.0040.00814.64
5.6.260.0060.00314.53
5.6.250.0030.01014.27
5.6.240.0060.00914.18
5.6.230.0070.00714.04
5.6.220.0100.00314.21
5.6.210.0030.01014.20
5.6.200.0030.00614.23
5.6.190.0000.00914.33
5.6.180.0100.00714.21
5.6.170.0130.00614.41
5.6.160.0090.00914.07
5.6.150.0110.00714.20
5.6.140.0030.01314.20
5.6.130.0030.00714.17
5.6.120.0030.01014.40
5.6.110.0070.00714.48
5.6.100.0060.00614.11
5.6.90.0030.01114.26
5.6.80.0060.00914.38
5.6.70.0100.00714.15
5.6.60.0100.00714.38
5.6.50.0040.01114.38
5.6.40.0100.00614.27
5.6.30.0030.00714.30
5.6.20.0120.00014.30
5.6.10.0040.00714.28
5.6.00.0080.00414.21

preferences:
38.51 ms | 401 KiB | 5 Q