3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* final public ExceptionException::getPrevious ( void ) */ error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, '00007600', $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { var_dump($e->getPrevious()); }

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.00318.30
8.3.50.0090.00721.21
8.3.40.0120.00318.79
8.3.30.0110.00420.38
8.3.20.0070.01020.16
8.3.10.0000.00721.92
8.3.00.0030.00522.44
8.2.180.0110.00716.75
8.2.170.0070.00722.96
8.2.160.0100.01022.31
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00926.16
8.2.120.0000.00820.89
8.2.110.0060.00322.22
8.2.100.0000.01217.91
8.2.90.0030.00519.17
8.2.80.0000.00719.40
8.2.70.0080.00017.63
8.2.60.0030.00618.04
8.2.50.0000.00818.07
8.2.40.0050.00318.22
8.2.30.0040.00419.31
8.2.20.0000.00817.62
8.2.10.0080.00017.76
8.2.00.0070.00317.75
8.1.280.0150.00025.92
8.1.270.0000.00723.99
8.1.260.0050.00326.35
8.1.250.0170.00028.09
8.1.240.0160.00323.85
8.1.230.0100.00318.98
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0080.00017.53
8.1.180.0050.00319.01
8.1.170.0060.00318.61
8.1.160.0110.00018.89
8.1.150.0080.00018.60
8.1.140.0070.00017.45
8.1.130.0000.00717.77
8.1.120.0000.00717.49
8.1.110.0080.00017.41
8.1.100.0050.00317.35
8.1.90.0040.00417.44
8.1.80.0000.00717.51
8.1.70.0000.00717.43
8.1.60.0000.00817.50
8.1.50.0040.00417.50
8.1.40.0060.00317.56
8.1.30.0030.00617.64
8.1.20.0080.00017.62
8.1.10.0040.00417.59
8.1.00.0060.00317.52
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0070.00018.35
8.0.270.0040.00417.32
8.0.260.0030.00316.80
8.0.250.0000.00716.95
8.0.240.0030.00617.01
8.0.230.0030.00316.96
8.0.220.0000.00716.79
8.0.210.0000.00716.91
8.0.200.0000.00716.88
8.0.190.0090.00016.97
8.0.180.0070.00016.91
8.0.170.0000.00816.84
8.0.160.0070.00016.88
8.0.150.0050.00516.77
8.0.140.0040.00416.84
8.0.130.0000.00613.34
8.0.120.0000.00716.80
8.0.110.0080.00016.78
8.0.100.0040.00417.00
8.0.90.0040.00416.97
8.0.80.0100.00616.97
8.0.70.0040.00416.73
8.0.60.0080.00016.91
8.0.50.0000.00716.98
8.0.30.0130.00517.14
8.0.20.0100.00817.43
8.0.10.0060.00317.09
8.0.00.0100.01316.86
7.4.330.0020.00215.00
7.4.320.0000.00616.43
7.4.300.0000.00616.50
7.4.290.0070.00016.40
7.4.280.0000.00716.49
7.4.270.0030.00316.49
7.4.260.0030.00313.24
7.4.250.0000.00816.53
7.4.240.0020.00516.52
7.4.230.0000.00716.34
7.4.220.0030.02316.53
7.4.210.0070.00916.54
7.4.200.0030.00316.41
7.4.190.0030.00516.75
7.4.160.0050.01116.59
7.4.150.0070.01017.40
7.4.140.0100.00617.86
7.4.130.0050.01116.53
7.4.120.0090.00816.54
7.4.110.0120.00616.55
7.4.100.0130.01016.66
7.4.90.0120.00916.66
7.4.80.0060.01219.39
7.4.70.0110.00716.58
7.4.60.0070.01416.39
7.4.50.0000.00816.24
7.4.40.0070.00522.77
7.4.30.0100.00616.53
7.4.00.0090.00615.04
7.3.330.0060.00013.24
7.3.320.0060.00013.18
7.3.310.0030.00316.24
7.3.300.0060.00016.25
7.3.290.0110.00316.28
7.3.280.0030.01116.33
7.3.270.0000.01717.40
7.3.260.0120.00616.46
7.3.250.0080.00916.60
7.3.240.0090.01216.29
7.3.230.0130.00316.39
7.3.210.0090.00916.46
7.3.200.0060.01819.39
7.3.190.0060.01016.56
7.3.180.0060.01016.58
7.3.170.0100.00716.64
7.3.160.0040.01116.35
7.3.120.0040.01115.02
7.2.330.0090.01116.64
7.2.320.0140.01016.80
7.2.310.0110.00716.64
7.2.300.0090.00616.71
7.2.290.0000.01816.57
7.2.60.0030.01216.86
7.2.00.0030.01219.15
7.1.200.0090.00315.62
7.1.100.0000.00918.16
7.1.70.0040.00417.16
7.1.60.0060.00619.32
7.1.50.0070.01816.73
7.1.00.0070.07722.31
7.0.200.0000.00916.85
7.0.140.0030.07722.01
7.0.60.0100.08020.10
7.0.50.0030.08317.86
7.0.40.0070.08020.27
7.0.30.0230.08320.19
7.0.20.0170.03720.15
7.0.10.0030.04320.23
7.0.00.0130.04320.20
5.6.280.0000.09321.10
5.6.210.0230.05720.51
5.6.200.0030.07718.16
5.6.190.0100.08020.64
5.6.180.0330.05020.55
5.6.170.0200.08020.56
5.6.160.0100.05020.71
5.6.150.0030.07318.25
5.6.140.0170.06318.14
5.6.130.0100.04318.29
5.6.120.0070.08321.05
5.6.110.0070.07320.95
5.6.100.0100.07021.11
5.6.90.0100.08320.88
5.6.80.0130.07320.54
5.5.350.4270.04020.41
5.5.340.0100.07318.09
5.5.330.0100.08720.31
5.5.320.0100.07720.24
5.5.310.0400.07720.30
5.5.300.0030.04018.04
5.5.290.0000.04317.95
5.5.280.0100.08320.66
5.5.270.0100.03320.64
5.5.260.0070.06020.76
5.5.250.0070.05320.77
5.5.240.0300.07020.24
5.4.450.0230.04319.32
5.4.440.0270.03719.56
5.4.430.0230.04319.30
5.4.420.0470.03019.19
5.4.410.0370.06319.25
5.4.400.0430.04719.09
5.4.390.0230.05019.20
5.4.380.0300.04319.15
5.4.370.0430.03319.20
5.4.360.0330.04319.16
5.4.350.0300.04719.21
5.4.340.0330.06018.83
5.4.320.0300.07019.00
5.4.310.0370.03719.00
5.4.300.0200.04319.00
5.4.290.0270.03318.99
5.4.280.0430.05719.21
5.4.270.0330.03019.09
5.4.260.0300.03319.31
5.4.250.0330.05319.17
5.4.240.0400.06718.98
5.4.230.0230.05019.19
5.4.220.0300.03719.11
5.4.210.0230.04019.30
5.4.200.0270.03718.99
5.4.190.0230.04018.94
5.4.180.0300.03719.13
5.4.170.0230.04019.21
5.4.160.0300.07019.18
5.4.150.0230.04019.14
5.4.140.0270.06316.39
5.4.130.0300.03016.66
5.4.120.0300.03716.36
5.4.110.0200.04016.43
5.4.100.0300.03016.52
5.4.90.0270.03016.40
5.4.80.0270.04016.50
5.4.70.0400.03316.52
5.4.60.0270.03316.33
5.4.50.0370.03316.48
5.4.40.0300.04716.53
5.4.30.0300.04016.48
5.4.20.0230.03316.32
5.4.10.0230.03716.25
5.4.00.0330.03016.22
5.3.290.0200.04316.22
5.3.280.0230.04716.22
5.3.270.0200.04716.22
5.3.260.0270.04016.22
5.3.250.0230.03716.22
5.3.240.0330.04716.22
5.3.230.0230.03716.22
5.3.220.0370.02716.22
5.3.210.0300.03716.22
5.3.200.0230.03716.22
5.3.190.0270.03316.22
5.3.180.0300.04016.22
5.3.170.0230.03716.22
5.3.160.0200.04016.22
5.3.150.0400.05016.22
5.3.140.0270.04016.22
5.3.130.0270.04716.22
5.3.120.0300.03316.22
5.3.110.0330.06316.22
5.3.100.0270.03716.22
5.3.90.0230.04016.22
5.3.80.0230.03716.22
5.3.70.0330.04016.22
5.3.60.0300.05016.22
5.3.50.0270.03716.22
5.3.40.0230.04716.22
5.3.30.0270.03716.22
5.3.20.0230.04316.22
5.3.10.0230.04716.22
5.3.00.0330.06016.22
5.2.170.0230.02716.22
5.2.160.0230.02716.22
5.2.150.0300.02016.22
5.2.140.0300.03316.22
5.2.130.0270.02316.22
5.2.120.0200.03016.22
5.2.110.0200.02716.22
5.2.100.0270.03016.22
5.2.90.0200.02716.22
5.2.80.0200.03016.22
5.2.70.0270.04016.22
5.2.60.0230.05716.22
5.2.50.0200.03016.22
5.2.40.0270.05716.22
5.2.30.0130.03016.22
5.2.20.0200.02716.22
5.2.10.0170.02716.22
5.2.00.0200.02716.22
5.1.60.0170.02716.22
5.1.50.0170.02316.22
5.1.40.0170.02316.22
5.1.30.0170.02716.22
5.1.20.0230.02716.22
5.1.10.0130.03016.22
5.1.00.0130.03016.22
5.0.50.0100.02016.22
5.0.40.0100.01716.22
5.0.30.0100.03016.22
5.0.20.0070.02016.22
5.0.10.0070.02016.22
5.0.00.0100.03016.22
4.4.90.0070.02016.22
4.4.80.0100.01316.22
4.4.70.0130.01316.22
4.4.60.0070.03016.22
4.4.50.0130.01316.22
4.4.40.0070.03016.22
4.4.30.0100.02316.22
4.4.20.0100.01716.22
4.4.10.0130.03316.22
4.4.00.0070.03016.22
4.3.110.0100.01316.22
4.3.100.0100.01316.22
4.3.90.0130.01016.22
4.3.80.0030.06016.22
4.3.70.0100.01316.22
4.3.60.0130.03016.22
4.3.50.0070.01716.22
4.3.40.0100.04016.22
4.3.30.0070.01316.22
4.3.20.0030.01716.22
4.3.10.0030.01716.22
4.3.00.0030.01316.22

preferences:
36.21 ms | 401 KiB | 5 Q