3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL | E_STRICT); header('Content-type: text/plain; charset=utf-8'); function a($a) { throw new Exception2('EXCEPTION MESSAGE'); } function b($b) { a($b); } try { b('THIS PARAMETER SHOULD SHOW UP'); } catch(Exception $e) { var_dump($e); } class Exception2 extends Exception { public function __construct() { $args = func_get_args(); call_user_func_array(array($this, 'parent::__construct'), $args); var_dump(debug_backtrace()); } }

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.0070.00718.50
8.3.50.0120.00616.11
8.3.40.0060.00918.88
8.3.30.0140.00020.07
8.3.20.0030.00520.09
8.3.10.0040.00421.84
8.3.00.0050.00322.44
8.2.180.0070.01016.88
8.2.170.0100.01022.96
8.2.160.0070.00722.20
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.75
8.2.110.0050.00522.08
8.2.100.0080.00417.84
8.2.90.0000.00819.17
8.2.80.0000.00819.41
8.2.70.0080.00017.63
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0000.00818.22
8.2.30.0050.00619.33
8.2.20.0050.00217.70
8.2.10.0040.00417.73
8.2.00.0030.00517.71
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0000.01023.92
8.1.230.0040.00819.16
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0010.00917.36
8.1.190.0060.00317.51
8.1.180.0060.00319.01
8.1.170.0040.00418.66
8.1.160.0020.00518.96
8.1.150.0000.00718.63
8.1.140.0090.00017.53
8.1.130.0030.00317.81
8.1.120.0050.00217.45
8.1.110.0030.00617.36
8.1.100.0000.00817.32
8.1.90.0040.00417.36
8.1.80.0040.00417.49
8.1.70.0040.00417.46
8.1.60.0090.00017.55
8.1.50.0000.00817.41
8.1.40.0050.00317.41
8.1.30.0030.00517.56
8.1.20.0060.00317.57
8.1.10.0000.00917.57
8.1.00.0030.00617.37
8.0.300.0060.00318.77
8.0.290.0040.00417.15
8.0.280.0040.00418.43
8.0.270.0050.00217.16
8.0.260.0040.00416.85
8.0.250.0080.00017.03
8.0.240.0040.00417.02
8.0.230.0050.00216.93
8.0.220.0000.00717.00
8.0.210.0030.00316.90
8.0.200.0040.00416.96
8.0.190.0050.00216.92
8.0.180.0000.00717.02
8.0.170.0000.00816.95
8.0.160.0040.00316.96
8.0.150.0040.00416.88
8.0.140.0040.00416.97
8.0.130.0060.00013.34
8.0.120.0000.00816.82
8.0.110.0000.00816.93
8.0.100.0040.00416.89
8.0.90.0000.00716.80
8.0.80.0070.01116.99
8.0.70.0030.00416.80
8.0.60.0040.00416.96
8.0.50.0050.00316.81
8.0.30.0150.00617.04
8.0.20.0070.01317.40
8.0.10.0040.00416.90
8.0.00.0100.00916.69
7.4.330.0030.00315.00
7.4.320.0000.00716.50
7.4.300.0060.00016.48
7.4.290.0000.00716.51
7.4.280.0030.00316.49
7.4.270.0030.00316.48
7.4.260.0000.00813.18
7.4.250.0040.00416.40
7.4.240.0020.00516.54
7.4.230.0000.00816.57
7.4.220.0060.01616.52
7.4.210.0090.00816.56
7.4.200.0040.00416.29
7.4.190.0000.00716.75
7.4.160.0160.00016.46
7.4.150.0060.01217.40
7.4.140.0070.01517.86
7.4.130.0140.00716.56
7.4.120.0140.00716.61
7.4.110.0160.00316.47
7.4.100.0120.00916.61
7.4.90.0160.00316.48
7.4.80.0170.00919.39
7.4.70.0130.01016.49
7.4.60.0140.00316.41
7.4.50.0050.00316.41
7.4.40.0070.00522.77
7.4.30.0070.01016.39
7.4.00.0110.00414.54
7.3.330.0050.00013.23
7.3.320.0000.00613.13
7.3.310.0090.00016.40
7.3.300.0000.00716.25
7.3.290.0080.00516.36
7.3.280.0130.00616.33
7.3.270.0130.00817.40
7.3.260.0130.01316.65
7.3.250.0110.01316.45
7.3.240.0130.00416.34
7.3.230.0130.00616.39
7.3.210.0110.01416.40
7.3.200.0030.01516.37
7.3.190.0110.00716.37
7.3.180.0030.01716.43
7.3.170.0130.01016.44
7.3.160.0140.00316.55
7.3.120.0030.01114.80
7.3.10.0060.00616.56
7.3.00.0040.00816.45
7.2.330.0120.01516.83
7.2.320.0140.01016.42
7.2.310.0150.00416.68
7.2.300.0080.00816.47
7.2.290.0190.00316.72
7.2.130.0000.01016.66
7.2.120.0180.00416.37
7.2.110.0110.01116.96
7.2.100.0120.00816.81
7.2.90.0250.00716.21
7.2.80.0150.00516.56
7.2.70.0140.01316.76
7.2.60.0200.00016.60
7.2.50.0080.00716.41
7.2.40.0030.00816.73
7.2.30.0040.01116.43
7.2.20.0130.00316.31
7.2.10.0110.00716.61
7.2.00.0120.01018.14
7.1.250.0070.00315.37
7.1.200.0070.00715.66
7.1.100.0070.00317.96
7.1.70.0080.00017.17
7.1.60.0130.01319.32
7.1.50.0160.00316.93
7.1.00.0100.06322.45
7.0.200.0000.00816.59
7.0.140.0030.07321.95
7.0.60.0000.04719.91
7.0.50.0100.07317.86
7.0.40.0100.08720.08
7.0.30.0500.07020.07
7.0.20.0270.08320.07
7.0.10.0100.04020.19
7.0.00.0070.04720.23
5.6.280.0000.07720.82
5.6.210.0170.07020.70
5.6.200.0100.07718.23
5.6.190.0030.09320.45
5.6.180.0500.03720.50
5.6.170.0170.05020.71
5.6.160.0170.07320.45
5.6.150.0070.07718.23
5.6.140.0030.05718.14
5.6.130.0130.07318.23
5.6.120.0100.07020.84
5.6.110.0130.08020.97
5.6.100.0070.08021.14
5.6.90.0030.08320.88
5.6.80.0030.07720.36
5.5.350.0170.05020.38
5.5.340.0070.08017.98
5.5.330.0170.08020.40
5.5.320.0070.06720.38
5.5.310.0300.07320.27
5.5.300.0000.09018.02
5.5.290.0070.08718.07
5.5.280.0100.08320.76
5.5.270.0130.07720.84
5.5.260.0100.07020.77
5.5.250.0100.04320.59
5.5.240.0270.06720.05
5.4.450.0070.04719.48
5.4.440.0030.05019.22
5.4.430.0070.04719.45
5.4.420.0030.07319.62
5.4.410.0170.06019.08
5.4.400.0030.04319.25
5.4.390.0070.05319.24
5.4.380.0000.05318.99
5.4.370.0030.07019.10
5.4.360.0000.06318.94
5.4.350.0030.04318.85
5.4.340.0070.04019.22
5.4.320.0030.05019.32
5.4.310.0130.04019.16
5.4.300.0030.07319.31
5.4.290.0070.06719.16
5.4.280.0030.05019.15
5.4.270.0030.07318.85
5.4.260.0000.07319.14
5.4.250.0030.04019.30
5.4.240.0030.07719.21
5.4.230.0030.07318.98
5.4.220.0070.04319.13
5.4.210.0030.03719.15
5.4.200.0000.06719.23
5.4.190.0030.08018.98
5.4.180.0070.05318.93
5.4.170.0030.05719.30
5.4.160.0230.04019.20
5.4.150.0070.07019.14
5.4.140.0070.07716.55
5.4.130.0070.04016.55
5.4.120.0000.07316.56
5.4.110.0030.04016.56
5.4.100.0030.04316.64
5.4.90.0100.04316.56
5.4.80.0000.05716.22
5.4.70.0000.07716.57
5.4.60.0030.07316.33
5.4.50.0070.07016.52
5.4.40.0000.06316.16
5.4.30.0000.04716.53
5.4.20.0070.05016.53
5.4.10.0100.04716.25
5.4.00.0070.05315.79
5.3.290.0070.05314.57
5.3.280.0000.08014.62
5.3.270.0000.06314.66
5.3.260.0070.08014.59
5.3.250.0030.08014.51
5.3.240.0030.07314.53
5.3.230.0100.04714.61
5.3.220.0030.05014.49
5.3.210.0000.06314.49
5.3.200.0100.03014.56
5.3.190.0070.05014.63
5.3.180.0100.04714.54
5.3.170.0030.07314.57
5.3.160.0000.07714.65
5.3.150.0030.08014.55
5.3.140.0070.07314.52
5.3.130.0030.04314.64
5.3.120.0070.07314.67
5.3.110.0070.06314.55
5.3.100.0070.07314.02
5.3.90.0000.07314.00
5.3.80.0100.07314.11
5.3.70.0070.07013.96
5.3.60.0070.07014.02
5.3.50.0070.05713.93
5.3.40.0000.04314.06
5.3.30.0000.04313.92
5.3.20.0000.03713.79
5.3.10.0030.03313.67
5.3.00.0030.03313.65
5.2.170.0070.06312.39
5.2.160.0000.05312.39
5.2.150.0000.03012.39
5.2.140.0000.03712.39
5.2.130.0000.03712.39
5.2.120.0030.02712.39
5.2.110.0000.02712.39
5.2.100.0000.02712.39
5.2.90.0000.02712.39
5.2.80.0030.02712.39
5.2.70.0030.02712.39
5.2.60.0030.03012.39
5.2.50.0030.03012.39
5.2.40.0000.03012.39
5.2.30.0030.02312.39
5.2.20.0000.02712.39
5.2.10.0030.03312.39
5.2.00.0030.03312.39
5.1.60.0000.02712.39
5.1.50.0030.02312.39
5.1.40.0030.02312.39
5.1.30.0030.02312.39
5.1.20.0000.03012.39
5.1.10.0030.02712.39
5.1.00.0030.02712.39
5.0.50.0030.02012.39
5.0.40.0030.01712.39
5.0.30.0000.03012.39
5.0.20.0000.02012.39
5.0.10.0100.01312.39
5.0.00.0070.02312.39
4.4.90.0000.01712.39
4.4.80.0000.01312.39
4.4.70.0000.01712.39
4.4.60.0000.01712.39
4.4.50.0000.02712.39
4.4.40.0000.02712.39
4.4.30.0000.01712.39
4.4.20.0030.01312.39
4.4.10.0000.01312.39
4.4.00.0000.02712.39
4.3.110.0000.01712.39
4.3.100.0000.01712.39
4.3.90.0030.01312.39
4.3.80.0000.02312.39
4.3.70.0000.01712.39
4.3.60.0030.01712.39
4.3.50.0030.01312.39
4.3.40.0030.02312.39
4.3.30.0000.01712.39
4.3.20.0000.01712.39
4.3.10.0000.02012.39
4.3.00.0030.01712.39

preferences:
64.11 ms | 400 KiB | 5 Q