3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* getSeverity ( void ) getMessage ( void ) final public ExceptionException::getPrevious ( void ) final public mixedException::getCode ( void ) final public stringException::getFile ( void ) final public intException::getLine ( void ) final public arrayException::getTrace ( void ) final public stringException::getTraceAsString ( void ) public string Exception::__toString ( void ) final private voidException::__clone ( void ) */ error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { echo $e->getSeverity(); }

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.0100.01018.43
8.3.50.0110.00821.27
8.3.40.0200.00018.79
8.3.30.0040.01120.13
8.3.20.0000.00720.34
8.3.10.0030.00621.92
8.3.00.0040.00422.32
8.2.180.0110.00716.50
8.2.170.0120.00922.96
8.2.160.0060.00922.26
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00517.75
8.2.110.0040.00422.20
8.2.100.0120.00017.91
8.2.90.0000.00819.11
8.2.80.0040.00419.28
8.2.70.0050.00517.61
8.2.60.0000.00818.04
8.2.50.0050.00318.07
8.2.40.0040.00417.90
8.2.30.0050.00519.43
8.2.20.0000.00717.78
8.2.10.0040.00417.73
8.2.00.0070.00417.81
8.1.270.0030.00522.15
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.97
8.1.230.0080.00319.15
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0040.00417.53
8.1.180.0040.00419.14
8.1.170.0000.00818.57
8.1.160.0030.00618.80
8.1.150.0050.00218.65
8.1.140.0050.00217.46
8.1.130.0000.00717.82
8.1.120.0040.00417.40
8.1.110.0020.00517.45
8.1.100.0040.00417.47
8.1.90.0070.00017.36
8.1.80.0030.00517.46
8.1.70.0070.00017.43
8.1.60.0030.00517.53
8.1.50.0040.00417.40
8.1.40.0050.00217.54
8.1.30.0000.00717.59
8.1.20.0030.00517.55
8.1.10.0000.00817.63
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0000.00717.04
8.0.280.0000.01018.44
8.0.270.0040.00417.14
8.0.260.0000.00716.95
8.0.250.0030.00316.91
8.0.240.0000.00817.03
8.0.230.0070.00016.93
8.0.220.0000.00616.89
8.0.210.0070.00016.88
8.0.200.0060.00016.96
8.0.190.0000.00816.93
8.0.180.0030.00316.83
8.0.170.0000.00816.77
8.0.160.0040.00416.97
8.0.150.0050.00516.76
8.0.140.0000.00716.90
8.0.130.0030.00313.39
8.0.120.0000.00716.80
8.0.110.0040.00416.95
8.0.100.0020.00516.85
8.0.90.0100.00017.00
8.0.80.0060.01316.98
8.0.70.0040.00416.88
8.0.60.0030.00516.90
8.0.50.0070.00017.02
8.0.30.0120.00617.08
8.0.20.0150.00717.40
8.0.10.0000.00816.96
8.0.00.0110.01016.78
7.4.330.0000.00515.00
7.4.320.0030.00316.44
7.4.300.0000.00616.56
7.4.290.0000.00716.53
7.4.280.0060.00016.56
7.4.270.0030.00316.53
7.4.260.0030.00313.24
7.4.250.0050.00316.38
7.4.240.0040.00416.51
7.4.230.0030.00316.71
7.4.220.0120.00616.61
7.4.210.0070.00816.56
7.4.200.0030.00316.67
7.4.190.0070.00016.57
7.4.160.0090.00616.49
7.4.150.0110.00717.40
7.4.140.0090.01217.86
7.4.130.0080.00916.38
7.4.120.0070.01116.62
7.4.110.0130.00616.37
7.4.100.0030.01416.47
7.4.90.0120.00616.47
7.4.80.0100.01019.39
7.4.70.0170.00016.43
7.4.60.0090.00916.38
7.4.50.0040.00416.49
7.4.40.0030.01322.77
7.4.30.0100.00716.66
7.4.00.0080.00414.79
7.3.330.0000.00513.36
7.3.320.0050.00013.18
7.3.310.0080.00016.39
7.3.300.0040.00416.20
7.3.290.0060.00916.38
7.3.280.0150.00216.35
7.3.270.0090.00917.40
7.3.260.0130.00316.44
7.3.250.0070.01016.46
7.3.240.0100.00616.49
7.3.230.0080.00816.39
7.3.210.0060.01016.51
7.3.200.0100.00719.39
7.3.190.0080.01116.57
7.3.180.0070.01316.40
7.3.170.0050.01116.45
7.3.160.0040.01116.44
7.3.120.0040.01115.01
7.3.10.0060.00616.34
7.3.00.0070.01116.74
7.2.330.0090.00916.66
7.2.320.0130.01016.68
7.2.310.0100.01016.80
7.2.300.0140.00316.23
7.2.290.0090.00616.34
7.2.130.0030.01016.70
7.2.120.0030.01216.88
7.2.110.0070.00316.88
7.2.100.0030.00917.00
7.2.90.0070.00717.09
7.2.80.0030.01017.00
7.2.70.0090.00316.92
7.2.60.0000.01016.96
7.2.50.0030.00716.98
7.2.40.0030.00917.02
7.2.30.0080.00416.77
7.2.20.0030.00616.98
7.2.10.0030.00716.88
7.2.00.0070.00518.15
7.1.250.0030.00915.92
7.1.200.0040.00815.92
7.1.100.0000.01218.09
7.1.70.0040.00417.32
7.1.60.0100.01319.32
7.1.50.0070.01416.80
7.1.00.0100.06322.50
7.0.200.0040.00416.82
7.0.140.0100.07022.10
7.0.110.0170.02720.03
7.0.100.0100.03320.07
7.0.90.0000.05719.87
7.0.80.0200.05319.92
7.0.70.0000.08720.03
7.0.60.0170.07020.01
7.0.50.0030.04319.86
7.0.40.0070.04019.76
7.0.30.0100.03319.65
7.0.20.0100.03019.75
7.0.10.0130.03319.77
7.0.00.0100.08019.64
5.6.280.0130.06321.09
5.6.260.0130.08020.74
5.6.250.0100.03020.60
5.6.240.0070.04720.69
5.6.230.0030.04020.60
5.6.220.0170.07720.85
5.6.210.0170.04320.64
5.6.200.0170.07720.65
5.6.190.0030.04320.71
5.6.180.0070.04020.66
5.6.170.0030.05020.70
5.6.160.0070.09020.59
5.6.150.0070.06020.53
5.6.140.0170.07720.63
5.6.130.0030.04320.62
5.6.120.0070.03720.59
5.6.110.0030.04020.63
5.6.100.0000.04720.63
5.6.90.0070.04020.62
5.6.80.0100.03319.98
5.6.70.0000.04320.07
5.6.60.0030.04019.98
5.6.50.0030.04720.02
5.6.40.0030.04020.19
5.6.30.0100.03319.83
5.6.20.0000.04319.91
5.6.10.0030.04719.91
5.6.00.0030.03720.05
5.5.380.0070.04320.37
5.5.370.0070.08020.48
5.5.360.0100.04720.53
5.5.350.0170.07020.42
5.5.340.0000.06020.96
5.5.330.0000.04720.98
5.5.320.0030.04320.75
5.5.310.0030.04721.03
5.5.300.0170.03720.95
5.5.290.0030.04320.84
5.5.280.0070.03720.97
5.5.270.0100.04020.69
5.5.260.0000.06320.94
5.5.250.0030.04020.75
5.5.240.0030.04020.37
5.5.230.0030.04020.18
5.5.220.0000.04320.26
5.5.210.0100.05020.25
5.5.200.0030.04320.20
5.5.190.0030.04320.30
5.5.180.0030.04020.22
5.5.160.0100.03320.24
5.5.150.0130.08720.05
5.5.140.0030.04020.08
5.5.130.0000.05720.23
5.5.120.0030.04020.02
5.5.110.0100.04720.08
5.5.100.0000.04020.25
5.5.90.0030.03720.26
5.5.80.0030.05020.05
5.5.70.0070.08020.04
5.5.60.0070.03320.25
5.5.50.0070.05320.15
5.5.40.0070.04020.16
5.5.30.0030.06320.12
5.5.20.0070.07320.24
5.5.10.0030.04320.24
5.5.00.0030.08719.92
5.4.450.0030.04719.39
5.4.440.0070.04019.47
5.4.430.0070.03719.34
5.4.420.0030.04319.33
5.4.410.0130.02719.38
5.4.400.0070.03719.27
5.4.390.0100.03019.18
5.4.380.0070.03319.00
5.4.370.0000.04319.31
5.4.360.0000.05019.18
5.4.350.0070.03319.31
5.4.340.0000.04319.23
5.4.320.0100.03318.97
5.4.310.0100.07019.17
5.4.300.0030.04018.99
5.4.290.0030.04019.00
5.4.280.0030.06019.33
5.4.270.0070.03319.00
5.4.260.0070.06319.01
5.4.250.0030.07719.22
5.4.240.0030.08018.99
5.4.230.0100.03318.96
5.4.220.0030.03719.00
5.4.210.0000.04019.00
5.4.200.0030.06019.01
5.4.190.0100.07318.98
5.4.180.0070.07719.00
5.4.170.0030.04319.00
5.4.160.0070.04718.96
5.4.150.0030.03719.14
5.4.140.0030.07316.52
5.4.130.0030.05016.35
5.4.120.0100.03016.43
5.4.110.0100.06016.54
5.4.100.0130.06716.57
5.4.90.0070.03016.41
5.4.80.0070.07016.53
5.4.70.0070.06016.51
5.4.60.0000.05016.63
5.4.50.0100.07016.44
5.4.40.0030.03716.34
5.4.30.0070.07016.56
5.4.20.0000.04016.33
5.4.10.0170.06016.33
5.4.00.0000.04015.97
5.3.290.0030.06014.80
5.3.280.0070.06714.61
5.3.270.0100.06314.58
5.3.260.0100.07314.75
5.3.250.0030.05014.56
5.3.240.0070.07014.58
5.3.230.0030.03714.73
5.3.220.0070.03714.69
5.3.210.0070.03314.58
5.3.200.0070.09014.57
5.3.190.0030.07714.60
5.3.180.0030.07714.55
5.3.170.0070.07714.42
5.3.160.0070.07714.55
5.3.150.0100.06714.65
5.3.140.0070.05014.58
5.3.130.0170.02714.54
5.3.120.0100.04314.40
5.3.110.0170.04014.54
5.3.100.0000.05314.02
5.3.90.0030.03714.11
5.3.80.0000.04013.98
5.3.70.0100.06713.98
5.3.60.0070.06314.01
5.3.50.0000.04013.96
5.3.40.0030.03714.05
5.3.30.0130.03313.91
5.3.20.0030.03313.75
5.3.10.0000.04013.88
5.3.00.0070.03313.70
5.2.170.0100.02311.92
5.2.160.0000.03011.92
5.2.150.0070.03011.92
5.2.140.0000.03011.92
5.2.130.0030.02711.92
5.2.120.0000.03011.92
5.2.110.0070.02311.92
5.2.100.0030.02711.92
5.2.90.0030.03311.92
5.2.80.0070.04311.92
5.2.70.0030.03311.92
5.2.60.0000.03011.92
5.2.50.0000.03711.92
5.2.40.0070.02711.92
5.2.30.0000.03011.92
5.2.20.0130.03011.92
5.2.10.0070.03311.92
5.2.00.0030.02711.92
5.1.60.0030.02311.92
5.1.50.0000.02711.92
5.1.40.0070.02011.92
5.1.30.0030.02711.92
5.1.20.0030.04311.92
5.1.10.0030.05711.92
5.1.00.0000.04711.92
5.0.50.0000.02011.92
5.0.40.0000.02011.92
5.0.30.0000.03011.92
5.0.20.0000.02011.92
5.0.10.0000.02011.92
5.0.00.0030.03311.92
4.4.90.0000.01711.92
4.4.80.0030.01711.92
4.4.70.0030.01311.92
4.4.60.0000.01711.92
4.4.50.0000.01711.92
4.4.40.0030.02011.92
4.4.30.0000.01711.92
4.4.20.0000.01711.92
4.4.10.0070.01311.92
4.4.00.0000.04311.92
4.3.110.0000.01711.92
4.3.100.0000.01311.92
4.3.90.0000.01311.92
4.3.80.0070.03711.92
4.3.70.0070.02311.92
4.3.60.0000.03711.92
4.3.50.0000.01311.92
4.3.40.0070.01711.92
4.3.30.0000.02711.92
4.3.20.0030.02011.92
4.3.10.0000.02011.92
4.3.00.0000.01311.92

preferences:
53.92 ms | 400 KiB | 5 Q