3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* getMessage ( void ) final public ExceptionException::getPrevious ( void ) final public stringException::getFile ( 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, '000076', $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { echo $e->getCode(); }

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.40.0130.00618.84
8.3.30.0000.01520.34
8.3.20.0070.00020.34
8.3.10.0050.00222.08
8.3.00.0040.00422.46
8.2.170.0100.01022.96
8.2.160.0030.01022.14
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00320.82
8.2.110.0050.00522.13
8.2.100.0060.00617.84
8.2.90.0000.00819.08
8.2.80.0040.00419.39
8.2.70.0000.00817.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0050.00318.22
8.2.30.0070.00319.45
8.2.20.0050.00317.72
8.2.10.0040.00417.78
8.2.00.0050.00617.73
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0090.00023.79
8.1.230.0070.00419.04
8.1.220.0050.00217.74
8.1.210.0040.00418.77
8.1.200.0150.00017.13
8.1.190.0040.00417.63
8.1.180.0050.00319.26
8.1.170.0030.00718.53
8.1.160.0000.00718.89
8.1.150.0070.00018.63
8.1.140.0050.00317.45
8.1.130.0000.00717.88
8.1.120.0070.00017.31
8.1.110.0040.00417.47
8.1.100.0000.00817.52
8.1.90.0070.00017.51
8.1.80.0030.00317.46
8.1.70.0000.00817.43
8.1.60.0000.00917.51
8.1.50.0070.00017.55
8.1.40.0000.00717.54
8.1.30.0000.00817.59
8.1.20.0000.00817.67
8.1.10.0030.00617.55
8.1.00.0040.00417.56
8.0.300.0070.00018.77
8.0.290.0040.00417.28
8.0.280.0030.00318.35
8.0.270.0040.00417.30
8.0.260.0000.00716.82
8.0.250.0000.00716.93
8.0.240.0040.00417.00
8.0.230.0030.00316.92
8.0.220.0030.00316.93
8.0.210.0070.00016.80
8.0.200.0000.00817.00
8.0.190.0030.00316.85
8.0.180.0000.00816.88
8.0.170.0030.00516.80
8.0.160.0040.00416.83
8.0.150.0000.00816.79
8.0.140.0040.00416.93
8.0.130.0000.00613.39
8.0.120.0060.00316.84
8.0.110.0000.00816.90
8.0.100.0040.00416.96
8.0.90.0030.00617.02
8.0.80.0040.01116.93
8.0.70.0000.00816.79
8.0.60.0050.00316.84
8.0.50.0040.00416.87
8.0.30.0120.01017.15
8.0.20.0080.01117.40
8.0.10.0030.00317.07
8.0.00.0080.01017.01
7.4.330.0060.00015.07
7.4.320.0030.00316.62
7.4.300.0060.00016.52
7.4.290.0070.00016.51
7.4.280.0080.00016.42
7.4.270.0030.00316.60
7.4.260.0000.00513.30
7.4.250.0030.00516.50
7.4.240.0050.00216.57
7.4.230.0030.00316.32
7.4.220.0060.01316.57
7.4.210.0070.00816.62
7.4.200.0030.00316.41
7.4.190.0040.00416.66
7.4.160.0060.01116.61
7.4.150.0100.00717.40
7.4.140.0110.00817.86
7.4.130.0080.00916.56
7.4.120.0090.00916.55
7.4.110.0150.00316.27
7.4.100.0140.00916.42
7.4.90.0070.01116.60
7.4.80.0120.00919.39
7.4.70.0070.01016.38
7.4.60.0160.00016.45
7.4.50.0040.00416.35
7.4.40.0050.00622.77
7.4.30.0100.00716.55
7.4.00.0030.01414.77
7.3.330.0050.00013.18
7.3.320.0030.00313.23
7.3.310.0050.00316.30
7.3.300.0070.00016.37
7.3.290.0060.01316.36
7.3.280.0080.00616.34
7.3.270.0090.01517.40
7.3.260.0070.01016.57
7.3.250.0100.00816.54
7.3.240.0110.01116.44
7.3.230.0100.00616.49
7.3.210.0100.01016.46
7.3.200.0140.00619.39
7.3.190.0140.00716.61
7.3.180.0120.00916.54
7.3.170.0040.01216.39
7.3.160.0100.00616.48
7.3.120.0030.00914.86
7.3.110.0070.00715.08
7.3.100.0100.00314.85
7.3.90.0030.01014.84
7.3.80.0080.00415.11
7.3.70.0080.00414.66
7.3.60.0040.00814.48
7.3.50.0060.00614.69
7.3.40.0030.00714.84
7.3.30.0080.00814.55
7.3.20.0070.00716.60
7.3.10.0120.00316.42
7.3.00.0060.00316.61
7.2.330.0030.01316.56
7.2.320.0130.01116.69
7.2.310.0060.01516.39
7.2.300.0160.00016.28
7.2.290.0060.00916.47
7.2.240.0040.00415.14
7.2.230.0000.01715.11
7.2.220.0090.00315.20
7.2.210.0070.01015.02
7.2.200.0100.00314.80
7.2.190.0070.00714.67
7.2.180.0090.00614.83
7.2.170.0130.00314.90
7.2.160.0100.00714.83
7.2.150.0120.00316.93
7.2.140.0040.00817.02
7.2.130.0040.01416.63
7.2.120.0070.00716.73
7.2.110.0030.00616.68
7.2.100.0040.01116.82
7.2.90.0030.01016.57
7.2.80.0060.00916.62
7.2.70.0060.01016.93
7.2.60.0030.01016.91
7.2.50.0040.00816.93
7.2.40.0100.00316.79
7.2.30.0040.00716.83
7.2.20.0080.00416.52
7.2.10.0030.01016.66
7.2.00.0100.00316.86
7.1.330.0040.00815.77
7.1.320.0060.00615.55
7.1.310.0060.00615.99
7.1.300.0030.00615.80
7.1.290.0030.01215.74
7.1.280.0100.00715.56
7.1.270.0000.01115.64
7.1.260.0080.00815.96
7.1.250.0000.01715.88
7.1.200.0000.01315.91
7.1.100.0000.01117.84
7.1.70.0000.01117.06
7.1.60.0130.01319.32
7.1.50.0030.02217.00
7.1.00.0000.04722.31
7.0.200.0030.00316.87
7.0.140.0000.07722.12
7.0.60.0330.07319.79
7.0.50.0030.05017.86
7.0.40.0130.08320.11
7.0.30.0300.07720.28
7.0.20.0300.07320.16
7.0.10.0200.08320.06
7.0.00.0130.05720.08
5.6.280.0030.07020.91
5.6.210.0100.08020.75
5.6.200.0070.04718.21
5.6.190.0100.07320.50
5.6.180.0330.08020.59
5.6.170.0270.06320.54
5.6.160.0070.08720.52
5.6.150.0100.07718.27
5.6.140.0130.06718.16
5.6.130.0100.03718.18
5.6.120.0100.06721.05
5.6.110.0100.08321.12
5.6.100.0100.07721.14
5.6.90.0100.07020.98
5.6.80.0070.06020.39
5.5.350.0100.08020.41
5.5.340.0070.05718.09
5.5.330.0070.07020.44
5.5.320.0500.06720.27
5.5.310.0200.07320.36
5.5.300.0070.03718.07
5.5.290.0000.09017.95
5.5.280.0100.05020.89
5.5.270.0070.07720.87
5.5.260.0170.08720.73
5.5.250.0100.08320.56
5.5.240.0100.08020.23
5.4.450.0200.03319.49
5.4.440.0100.04319.41
5.4.430.0170.03719.57
5.4.420.0100.04319.19
5.4.410.0200.03319.29
5.4.400.0100.04019.16
5.4.390.0300.04319.08
5.4.380.0200.05719.20
5.4.370.0230.03718.98
5.4.360.0330.06719.31
5.4.350.0330.04019.10
5.4.340.0270.06019.15
5.4.320.0270.06319.02
5.4.310.0270.07318.89
5.4.300.0230.05319.23
5.4.290.0170.04018.91
5.4.280.0300.06718.99
5.4.270.0330.03719.08
5.4.260.0300.06319.26
5.4.250.0270.06719.24
5.4.240.0200.07319.06
5.4.230.0230.06319.31
5.4.220.0200.07319.08
5.4.210.0300.07019.23
5.4.200.0230.05019.30
5.4.190.0400.05019.30
5.4.180.0270.07318.99
5.4.170.0170.05019.09
5.4.160.0300.06019.04
5.4.150.0270.06719.20
5.4.140.0330.05716.36
5.4.130.0300.06316.51
5.4.120.0200.05316.29
5.4.110.0200.07716.58
5.4.100.0270.04016.19
5.4.90.0230.07316.49
5.4.80.0330.05716.39
5.4.70.0270.03316.44
5.4.60.0270.06316.43
5.4.50.0270.02716.43
5.4.40.0330.06016.36
5.4.30.0300.06316.43
5.4.20.0200.07016.51
5.4.10.0170.08016.25
5.4.00.0270.05015.86
5.3.290.0230.03714.77
5.3.280.0200.07014.68
5.3.270.0200.06014.52
5.3.260.0200.08014.51
5.3.250.0230.05014.59
5.3.240.0270.06714.63
5.3.230.0200.04714.66
5.3.220.0270.05714.79
5.3.210.0230.04714.57
5.3.200.0200.07714.61
5.3.190.0430.06014.57
5.3.180.0230.07714.63
5.3.170.0330.06014.64
5.3.160.0300.05714.67
5.3.150.0200.05714.48
5.3.140.0130.04314.77
5.3.130.0170.05714.46
5.3.120.0200.07014.47
5.3.110.0230.03314.54
5.3.100.0230.06714.13
5.3.90.0300.05013.99
5.3.80.0230.06013.93
5.3.70.0170.06714.10
5.3.60.0170.06313.93
5.3.50.0330.06314.17
5.3.40.0230.06713.96
5.3.30.0200.07313.95
5.3.20.0230.04713.62
5.3.10.0200.07013.66
5.3.00.0270.07013.64
5.2.170.0100.06712.42
5.2.160.0200.03712.42
5.2.150.0170.05312.42
5.2.140.0200.03312.42
5.2.130.0200.04312.42
5.2.120.0270.04012.42
5.2.110.0170.04712.42
5.2.100.0230.03712.42
5.2.90.0170.03012.42
5.2.80.0100.03312.42
5.2.70.0170.02712.42
5.2.60.0100.03712.42
5.2.50.0230.05312.42
5.2.40.0100.05712.42
5.2.30.0170.06012.42
5.2.20.0100.06312.42
5.2.10.0170.04712.42
5.2.00.0130.06012.42
5.1.60.0200.02312.42
5.1.50.0200.03312.42
5.1.40.0170.05312.42
5.1.30.0170.05712.42
5.1.20.0130.05012.42
5.1.10.0200.05012.42
5.1.00.0100.05712.42
5.0.50.0170.04012.42
5.0.40.0100.04012.42
5.0.30.0130.05712.42
5.0.20.0070.02712.42
5.0.10.0100.03712.42
5.0.00.0100.04312.42
4.4.90.0130.01012.42
4.4.80.0130.02312.42
4.4.70.0070.03012.42
4.4.60.0130.02312.42
4.4.50.0070.03712.42
4.4.40.0100.05012.42
4.4.30.0030.02312.42
4.4.20.0030.04012.42
4.4.10.0100.03312.42
4.4.00.0070.05012.42
4.3.110.0030.02312.42
4.3.100.0070.02712.42
4.3.90.0070.03012.42
4.3.80.0130.02712.42
4.3.70.0100.01712.42
4.3.60.0130.02012.42
4.3.50.0070.03712.42
4.3.40.0100.04712.42
4.3.30.0070.03712.42
4.3.20.0030.03312.42
4.3.10.0070.03712.42
4.3.00.0030.02712.42

preferences:
41.49 ms | 400 KiB | 5 Q