3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { try { try { try{ try{ throw new Exception('hi', 1, $e); } Catch (Exception $e) { throw new Exception('hi', 2, $e); } } Catch (Exception $e) { throw new Exception('hi', 3, $e); } } Catch (Exception $e) { throw new Exception('hi', 4, $e); } } Catch (Exception $e) { throw new Exception('hi', 5, $e); } } Catch (Exception $e) { throw new Exception('hi', 6, $e); } } catch (Exception $e) { echo $e->getMessage(), "\n"; while ($e = $e->getPreviousException()) { echo $e->getMessage(), "\n"; } }

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.70.0130.01018.31
8.3.60.0100.01316.63
8.3.50.0060.01421.86
8.3.40.0100.01018.79
8.3.30.0070.00718.70
8.3.20.0100.00320.08
8.3.10.0050.00323.48
8.3.00.0040.00419.38
8.2.190.0060.00917.00
8.2.180.0120.00616.48
8.2.170.0110.00722.96
8.2.160.0000.01620.41
8.2.150.0150.00324.18
8.2.140.0140.00024.66
8.2.130.0040.00417.63
8.2.120.0000.00726.35
8.2.110.0090.00020.79
8.2.100.0030.00917.75
8.2.90.0000.00719.17
8.2.80.0030.00617.97
8.2.70.0030.00617.75
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00419.45
8.2.30.0030.00620.53
8.2.20.0000.00917.66
8.2.10.0000.00818.19
8.2.00.0030.00518.08
8.1.280.0070.01325.92
8.1.270.0090.00023.91
8.1.260.0080.00028.09
8.1.250.0110.00728.09
8.1.240.0030.00720.92
8.1.230.0040.00717.48
8.1.220.0030.00617.77
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0080.00017.47
8.1.180.0090.00018.10
8.1.170.0030.00618.49
8.1.160.0040.00422.05
8.1.150.0040.00418.85
8.1.140.0000.00819.56
8.1.130.0000.00717.72
8.1.120.0040.00417.43
8.1.110.0040.00417.34
8.1.100.0070.00017.47
8.1.90.0070.00017.38
8.1.80.0030.00317.46
8.1.70.0030.00317.35
8.1.60.0000.00817.61
8.1.50.0030.00517.55
8.1.40.0100.00017.45
8.1.30.0060.00317.61
8.1.20.0030.00617.64
8.1.10.0080.00017.62
8.1.00.0040.00417.53
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0030.00518.38
8.0.270.0070.00017.34
8.0.260.0060.00017.19
8.0.250.0030.00316.94
8.0.240.0000.00717.01
8.0.230.0070.00016.89
8.0.220.0040.00416.91
8.0.210.0000.00716.95
8.0.200.0000.00716.91
8.0.190.0000.00816.96
8.0.180.0040.00416.89
8.0.170.0000.00716.96
8.0.160.0050.00216.84
8.0.150.0070.00016.96
8.0.140.0050.00216.96
8.0.130.0000.00813.49
8.0.120.0000.00916.95
8.0.110.0000.00816.87
8.0.100.0000.00717.03
8.0.90.0050.00316.99
8.0.80.0120.00616.87
8.0.70.0000.00716.93
8.0.60.0070.00016.94
8.0.50.0000.00716.87
8.0.30.0070.01217.13
8.0.20.0090.01117.40
8.0.10.0050.00316.94
8.0.00.0110.01116.86
7.4.330.0000.00616.79
7.4.320.0030.00316.64
7.4.300.0050.00216.57
7.4.290.0040.00416.58
7.4.280.0000.00716.44
7.4.270.0070.00016.64
7.4.260.0070.00016.61
7.4.250.0070.00016.64
7.4.240.0010.00616.65
7.4.230.0080.00016.66
7.4.220.0130.01016.54
7.4.210.0090.00616.63
7.4.200.0040.00416.70
7.4.160.0140.00716.56
7.4.150.0030.01617.40
7.4.140.0060.01417.86
7.4.130.0100.00716.60
7.4.120.0110.00716.61
7.4.110.0070.01116.63
7.4.100.0090.00916.49
7.4.90.0080.01316.57
7.4.80.0090.00919.39
7.4.70.0140.00616.46
7.4.60.0060.01016.50
7.4.50.0000.01416.46
7.4.40.0090.01516.68
7.4.30.0070.01016.42
7.4.00.0070.01014.99
7.3.330.0050.00013.11
7.3.320.0030.00313.13
7.3.310.0070.00016.30
7.3.300.0000.00616.12
7.3.290.0100.00616.32
7.3.280.0080.00916.27
7.3.270.0100.00617.40
7.3.260.0060.01016.68
7.3.250.0130.00816.38
7.3.240.0140.00816.38
7.3.230.0090.00916.59
7.3.210.0150.00716.40
7.3.200.0090.00916.53
7.3.190.0140.00616.48
7.3.180.0070.01416.58
7.3.170.0120.01016.34
7.3.160.0130.00716.29
7.3.120.0060.01114.64
7.3.110.0080.01114.77
7.3.100.0040.01214.84
7.3.90.0070.00614.80
7.3.80.0050.00914.76
7.3.70.0060.00814.62
7.3.60.0020.01114.81
7.3.50.0050.00914.75
7.3.40.0020.01014.73
7.3.30.0090.00314.87
7.3.20.0040.00916.54
7.3.10.0070.00516.61
7.3.00.0080.00616.45
7.2.330.0090.00916.69
7.2.320.0030.01716.42
7.2.310.0050.01316.61
7.2.300.0100.00716.71
7.2.290.0140.00316.70
7.2.250.0090.00915.06
7.2.240.0110.00815.07
7.2.230.0050.01115.02
7.2.220.0060.01015.05
7.2.210.0070.00814.90
7.2.200.0070.00715.00
7.2.190.0050.01114.96
7.2.180.0040.00814.98
7.2.170.0030.00814.78
7.2.160.0000.01614.78
7.2.150.0090.00316.94
7.2.140.0060.01216.62
7.2.130.0040.01117.07
7.2.120.0070.00716.81
7.2.110.0070.00316.71
7.2.100.0030.01416.86
7.2.90.0070.01416.76
7.2.80.0020.01216.66
7.2.70.0130.00616.97
7.2.60.0050.00916.79
7.2.50.0030.01317.05
7.2.40.0060.00916.75
7.2.30.0060.00916.96
7.2.20.0120.00316.96
7.2.10.0030.01216.79
7.2.00.0100.00318.03
7.1.330.0110.00415.83
7.1.320.0050.00715.72
7.1.310.0050.00615.82
7.1.300.0060.00815.67
7.1.290.0020.01215.77
7.1.280.0070.00615.54
7.1.270.0050.00715.52
7.1.260.0050.00615.68
7.1.250.0000.01515.69
7.1.240.0040.00715.79
7.1.230.0070.00715.56
7.1.220.0000.01015.70
7.1.210.0000.01615.78
7.1.200.0040.00615.70
7.1.190.0090.00315.90
7.1.180.0030.01015.89
7.1.170.0040.01115.86
7.1.160.0090.00315.57
7.1.150.0000.01515.70
7.1.140.0040.00815.66
7.1.130.0000.01215.79
7.1.120.0040.00815.77
7.1.110.0030.00715.86
7.1.100.0090.00416.93
7.1.90.0030.01015.76
7.1.80.0080.00315.62
7.1.70.0030.00616.21
7.1.60.0070.01317.40
7.1.50.0080.01016.28
7.1.40.0030.00915.68
7.1.30.0070.00315.64
7.1.20.0090.00315.76
7.1.10.0000.01415.55
7.1.00.0100.03719.00
7.0.330.0000.01115.06
7.0.320.0080.00015.34
7.0.310.0070.01315.44
7.0.300.0030.01015.55
7.0.290.0030.00615.46
7.0.280.0100.00315.43
7.0.270.0070.00315.36
7.0.260.0040.00815.31
7.0.250.0000.00915.45
7.0.240.0080.00415.23
7.0.230.0030.00715.23
7.0.220.0090.00315.27
7.0.210.0100.00715.26
7.0.200.0060.00616.04
7.0.190.0070.00315.43
7.0.180.0110.00415.56
7.0.170.0070.00415.29
7.0.160.0000.01215.30
7.0.150.0070.00715.42
7.0.140.0030.01015.38
7.0.130.0070.00715.54
7.0.120.0040.01115.65
7.0.110.0080.00015.23
7.0.100.0080.00415.39
7.0.90.0040.00715.53
7.0.80.0000.01015.20
7.0.70.0070.00415.43
7.0.60.0020.04318.62
7.0.50.0080.04216.69
7.0.40.0060.03816.81
7.0.30.0150.04516.92
7.0.20.0180.04216.90
7.0.10.0070.04716.68
7.0.00.0030.02816.82
5.6.400.0050.00514.31
5.6.390.0000.00913.90
5.6.380.0060.01013.93
5.6.370.0000.01514.21
5.6.360.0000.01414.17
5.6.350.0060.00314.40
5.6.340.0000.01314.31
5.6.330.0060.00914.44
5.6.320.0030.01014.48
5.6.310.0030.01014.46
5.6.300.0000.01214.62
5.6.290.0030.00914.17
5.6.280.0030.03217.53
5.6.270.0090.00314.25
5.6.260.0000.01414.59
5.6.250.0110.00614.25
5.6.240.0100.00314.11
5.6.230.0120.00314.30
5.6.220.0110.00014.12
5.6.210.0050.03417.46
5.6.200.0060.04316.20
5.6.190.0050.02817.38
5.6.180.0150.03217.46
5.6.170.0210.02817.29
5.6.160.0050.04917.35
5.6.150.0070.02816.06
5.6.140.0020.04016.25
5.6.130.0100.04416.16
5.6.120.0070.02317.74
5.6.110.0070.04317.74
5.6.100.0070.04017.69
5.6.90.0050.02517.67
5.6.80.0090.02917.18
5.6.70.0030.01414.07
5.6.60.0030.01314.27
5.6.50.0000.01514.02
5.6.40.0000.01513.85
5.6.30.0000.01114.22
5.6.20.0070.00714.21
5.6.10.0040.00814.07
5.6.00.0070.01014.25
5.5.380.0070.00314.16
5.5.370.0030.00514.27
5.5.360.0070.00714.35
5.5.350.2030.02317.11
5.5.340.0080.04116.01
5.5.330.0020.02917.01
5.5.320.0150.02716.99
5.5.310.0080.02717.28
5.5.300.0030.04916.04
5.5.290.0100.03716.24
5.5.280.0070.02717.46
5.5.270.0070.04317.50
5.5.260.0100.03017.39
5.5.250.0070.04217.26
5.5.240.0020.03717.04
5.5.230.0060.00314.00
5.5.220.0030.01313.83
5.5.210.0120.00014.14
5.5.200.0100.00314.36
5.5.190.0040.00414.01
5.5.180.0000.01314.12
5.5.170.0040.01114.02
5.5.160.0080.00814.21
5.5.150.0070.00714.35
5.5.140.0000.01314.00
5.5.130.0120.00014.20
5.5.120.0040.00714.10
5.5.110.0060.00314.08
5.5.100.0090.00014.28
5.5.90.0070.00714.03
5.5.80.0030.00514.14
5.5.70.0070.00414.07
5.5.60.0090.00014.20
5.5.50.0090.00614.29
5.5.40.0100.00714.44
5.5.30.0070.01014.07
5.5.20.0000.01314.14
5.5.10.0080.00614.00
5.5.00.0030.01314.21

preferences:
61.44 ms | 401 KiB | 5 Q