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->getMessage()); }

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.0140.00718.56
8.3.50.0070.00821.08
8.3.40.0100.01018.79
8.3.30.0070.00720.34
8.3.20.0080.00020.34
8.3.10.0000.00822.00
8.3.00.0040.00422.58
8.2.180.0090.00916.88
8.2.170.0030.01222.96
8.2.160.0040.01122.12
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00020.82
8.2.110.0060.00322.09
8.2.100.0070.00417.84
8.2.90.0040.00419.01
8.2.80.0030.00519.21
8.2.70.0030.00617.38
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0050.00319.45
8.2.20.0040.00417.59
8.2.10.0000.00817.73
8.2.00.0090.00317.74
8.1.280.0040.01525.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.84
8.1.230.0070.00319.19
8.1.220.0060.00317.78
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0040.00417.66
8.1.180.0040.00419.14
8.1.170.0050.00318.71
8.1.160.0000.00720.59
8.1.150.0040.00418.64
8.1.140.0070.00017.36
8.1.130.0030.00317.86
8.1.120.0000.00717.38
8.1.110.0070.00017.50
8.1.100.0050.00217.50
8.1.90.0070.00017.43
8.1.80.0030.00317.41
8.1.70.0000.00717.44
8.1.60.0030.00617.47
8.1.50.0080.00017.41
8.1.40.0040.00417.56
8.1.30.0000.00717.49
8.1.20.0030.00617.61
8.1.10.0040.00417.61
8.1.00.0040.00417.49
8.0.300.0000.00818.77
8.0.290.0040.00417.18
8.0.280.0040.00418.44
8.0.270.0040.00417.29
8.0.260.0040.00416.88
8.0.250.0000.00717.04
8.0.240.0060.00316.92
8.0.230.0040.00416.99
8.0.220.0030.00316.84
8.0.210.0030.00316.87
8.0.200.0000.00616.92
8.0.190.0000.00716.85
8.0.180.0070.00016.87
8.0.170.0040.00416.81
8.0.160.0050.00216.76
8.0.150.0060.00316.93
8.0.140.0040.00416.80
8.0.130.0030.00313.40
8.0.120.0070.00016.93
8.0.110.0030.00516.91
8.0.100.0040.00416.93
8.0.90.0030.00616.95
8.0.80.0130.01016.99
8.0.70.0040.00416.82
8.0.60.0040.00416.78
8.0.50.0040.00416.98
8.0.30.0060.01117.07
8.0.20.0150.00617.40
8.0.10.0000.00717.08
8.0.00.0100.00816.84
7.4.330.0020.00215.00
7.4.320.0060.00016.48
7.4.300.0060.00016.50
7.4.290.0040.00416.58
7.4.280.0030.00316.44
7.4.270.0060.00016.52
7.4.260.0000.00613.34
7.4.250.0070.00016.45
7.4.240.0050.00216.63
7.4.230.0040.00416.45
7.4.220.0040.01416.46
7.4.210.0060.00916.58
7.4.200.0040.00416.39
7.4.190.0000.00716.46
7.4.160.0030.01716.71
7.4.150.0060.01017.40
7.4.140.0080.01117.86
7.4.130.0080.00816.56
7.4.120.0060.01016.53
7.4.110.0170.00316.49
7.4.100.0090.00916.48
7.4.90.0120.00616.55
7.4.80.0070.01119.39
7.4.70.0060.01216.62
7.4.60.0030.01416.40
7.4.50.0030.00516.42
7.4.40.0070.01122.77
7.4.30.0100.00716.68
7.4.00.0070.01114.88
7.3.330.0000.00613.24
7.3.320.0000.00513.38
7.3.310.0030.00316.48
7.3.300.0070.00016.37
7.3.290.0030.01016.39
7.3.280.0040.01116.35
7.3.270.0060.01217.40
7.3.260.0130.00316.62
7.3.250.0070.01016.46
7.3.240.0100.00716.35
7.3.230.0080.01116.73
7.3.210.0030.01316.55
7.3.200.0140.00319.39
7.3.190.0150.00316.52
7.3.180.0090.00616.49
7.3.170.0130.00316.54
7.3.160.0100.01016.66
7.3.120.0050.01115.01
7.3.110.0070.00714.94
7.3.100.0090.00614.96
7.3.90.0030.00914.74
7.3.80.0030.00614.99
7.3.70.0080.00414.73
7.3.60.0070.01014.69
7.3.50.0040.01114.98
7.3.40.0030.01015.02
7.3.30.0040.01114.73
7.3.20.0030.01016.69
7.3.10.0100.00316.71
7.3.00.0060.00616.52
7.2.330.0100.00716.46
7.2.320.0030.01816.68
7.2.310.0090.01216.39
7.2.300.0030.01516.42
7.2.290.0130.00316.74
7.2.250.0130.00714.83
7.2.240.0100.01015.22
7.2.230.0040.01115.15
7.2.220.0090.00015.17
7.2.210.0070.01014.63
7.2.200.0080.00815.06
7.2.190.0070.00715.03
7.2.180.0040.00815.03
7.2.170.0090.00614.98
7.2.00.0260.00918.63
7.1.330.0090.00315.89
7.1.320.0000.01015.85
7.1.310.0030.01015.77
7.1.300.0070.00715.90
7.1.290.0070.00715.89
7.1.280.0000.01715.79
7.1.270.0030.01015.63
7.1.260.0060.00915.82
7.1.100.0040.00718.32
7.1.70.0040.00417.24
7.1.60.0080.01519.32
7.1.50.0100.01416.96
7.1.00.0100.06322.48
7.0.200.0040.00416.90
7.0.140.0070.07021.92
7.0.100.0030.08719.98
7.0.90.0270.07019.95
7.0.80.0100.08019.94
7.0.70.0100.06019.86
7.0.60.0100.07019.94
7.0.50.0230.09020.27
7.0.40.0070.05020.18
7.0.30.0170.07020.11
7.0.20.0130.08719.92
7.0.10.0000.07720.09
7.0.00.0130.08319.99
5.6.280.0100.06721.02
5.6.250.0070.07720.77
5.6.240.0130.07020.55
5.6.230.0100.04020.70
5.6.220.0000.07320.56
5.6.210.0000.08020.47
5.6.200.0100.05021.06
5.6.190.0100.08321.01
5.6.180.0030.07721.04
5.6.170.0070.05021.12
5.6.160.0030.08321.18
5.6.150.0070.07720.94
5.6.140.0100.08721.14
5.6.130.0130.08320.94
5.6.120.0070.07021.01
5.6.110.0130.07020.96
5.6.100.0170.07021.00
5.6.90.0070.08321.07
5.6.80.0070.08020.50
5.6.70.0170.06320.45
5.6.60.0000.05720.34
5.6.50.0170.06720.42
5.6.40.0070.08320.44
5.6.30.0070.08020.45
5.6.20.0130.07020.50
5.6.10.0070.08320.50
5.6.00.0030.08720.43
5.5.380.0100.07720.50
5.5.370.0200.06020.36
5.5.360.0070.07320.34
5.5.350.0070.08320.48
5.5.340.0230.07020.82
5.5.330.0030.08320.80
5.5.320.0070.07720.89
5.5.310.0070.08320.84
5.5.300.0070.08320.89
5.5.290.0170.07320.93
5.5.280.0030.09020.76
5.5.270.0070.07720.63
5.5.260.0070.07320.80
5.5.250.0070.08020.69
5.5.240.0230.06020.15
5.5.230.0070.08020.30
5.5.220.0130.07320.17
5.5.210.0000.08020.30
5.5.200.0100.06020.12
5.5.190.0070.05020.15
5.5.180.0130.07720.13
5.5.160.0200.07020.25
5.5.150.0100.05720.28
5.5.140.0100.07720.28
5.5.130.0130.07320.11
5.5.120.0030.08320.15
5.5.110.0100.08320.23
5.5.100.0070.07020.05
5.5.90.0130.04320.15
5.5.80.0070.07720.16
5.5.70.0100.05320.16
5.5.60.0070.07320.16
5.5.50.0100.03720.01
5.5.40.0070.06320.11
5.5.30.0070.06319.93
5.5.20.0030.06020.09
5.5.10.0030.08320.13
5.5.00.0030.06720.04
5.4.450.0130.05319.49
5.4.440.0100.07319.38
5.4.430.0070.08719.18
5.4.420.0100.07319.20
5.4.410.0030.08019.33
5.4.400.0100.07019.19
5.4.390.0030.05019.05
5.4.380.0130.06719.14
5.4.370.0070.07719.14
5.4.360.0000.05019.04
5.4.350.0070.06319.13
5.4.340.0030.08319.21
5.4.320.0130.07019.23
5.4.310.0100.07019.05
5.4.300.0200.05319.03
5.4.290.0030.07319.13
5.4.280.0130.06719.04
5.4.270.0070.03719.09
5.4.260.0170.05319.03
5.4.250.0070.07319.13
5.4.240.0100.04018.94
5.4.230.0130.03319.09
5.4.220.0030.07318.89
5.4.210.0070.06719.18
5.4.200.0100.07719.09
5.4.190.0000.04319.13
5.4.180.0070.02718.84
5.4.170.0100.07019.18
5.4.160.0070.05719.20
5.4.150.0100.07319.03
5.4.140.0070.04716.44
5.4.130.0070.04016.37
5.4.120.0000.07316.34
5.4.110.0070.07016.27
5.4.100.0070.03016.47
5.4.90.0070.04016.50
5.4.80.0100.05316.41
5.4.70.0070.06316.33
5.4.60.0000.06316.41
5.4.50.0030.07716.36
5.4.40.0100.06716.41
5.4.30.0030.04316.36
5.4.20.0070.06316.44
5.4.10.0100.06716.26
5.4.00.0000.05315.83
5.3.290.0130.05014.78
5.3.280.0000.04714.71
5.3.270.0130.03714.54
5.3.260.0030.04314.54
5.3.250.0070.05314.66
5.3.240.0030.06314.73
5.3.230.0070.07314.71
5.3.220.0070.07014.55
5.3.210.0070.07014.63
5.3.200.0070.06314.59
5.3.190.0030.07714.70
5.3.180.0030.07314.70
5.3.170.0030.04014.61
5.3.160.0030.07314.67
5.3.150.0100.06014.70
5.3.140.0000.04714.62
5.3.130.0070.06314.68
5.3.120.0070.06314.50
5.3.110.0070.07714.64
5.3.100.0030.07714.16
5.3.90.0070.06014.00
5.3.80.0030.06314.03
5.3.70.0200.05714.14
5.3.60.0100.04714.12
5.3.50.0000.06313.93
5.3.40.0030.07714.04
5.3.30.0100.04313.89
5.3.20.0030.04313.80
5.3.10.0000.07313.77
5.3.00.0170.06313.56
5.2.170.0070.03711.28
5.2.160.0030.05011.16
5.2.150.0000.05311.18
5.2.140.0030.04011.09
5.2.130.0070.05310.99
5.2.120.0000.05010.96
5.2.110.0030.05711.23
5.2.100.0030.06311.11
5.2.90.0100.05311.09
5.2.80.0000.05711.01
5.2.70.0070.05711.01
5.2.60.0000.06010.96
5.2.50.0030.06011.12
5.2.40.0030.03311.06
5.2.30.0100.06010.91
5.2.20.0000.06711.02
5.2.10.0030.04710.73
5.2.00.0030.05710.85
5.1.60.0070.05310.03
5.1.50.0070.04710.05
5.1.40.0000.0439.82
5.1.30.0100.04710.37
5.1.20.0070.06710.41
5.1.10.0100.04710.13
5.1.00.0000.0579.91
5.0.50.0030.0338.43
5.0.40.0000.0338.50
5.0.30.0030.0608.41
5.0.20.0070.0378.41
5.0.10.0030.0378.41
5.0.00.0070.0508.41
4.4.90.0000.0238.41
4.4.80.0070.0308.41
4.4.70.0000.0378.41
4.4.60.0070.0338.41
4.4.50.0030.0338.41
4.4.40.0030.0338.41
4.4.30.0030.0338.41
4.4.20.0030.0378.41
4.4.10.0070.0308.41
4.4.00.0000.0538.41
4.3.110.0030.0308.41
4.3.100.0000.0208.41
4.3.90.0000.0338.41
4.3.80.0000.0508.41
4.3.70.0070.0308.41
4.3.60.0000.0278.41
4.3.50.0030.0338.41
4.3.40.0030.0478.41
4.3.30.0000.0308.41
4.3.20.0070.0308.41
4.3.10.0000.0408.41
4.3.00.0030.0338.41

preferences:
51.17 ms | 401 KiB | 5 Q