3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExceptionHandler { public static function printException(Exception $e) { print 'Uncaught '.get_class($e).', code: ' . $e->getCode() . "<br />Message: " . htmlentities($e->getMessage())."\n"; } public static function handleException(Exception $e) { self::printException($e); } } set_exception_handler(array("ExceptionHandler", "handleException")); throw new Exception("Catch me twice", 2); ?>

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.0150.00616.50
8.3.50.0070.01022.79
8.3.40.0070.00718.68
8.3.30.0150.00619.18
8.3.20.0060.00320.33
8.3.10.0040.01220.53
8.3.00.0050.00320.89
8.2.180.0110.01116.50
8.2.170.0150.00022.96
8.2.160.0140.00320.39
8.2.150.0090.00924.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0070.00317.50
8.2.110.0070.00320.94
8.2.100.0090.00317.91
8.2.90.0000.00817.91
8.2.80.0030.00617.97
8.2.70.0000.00817.93
8.2.60.0100.00018.09
8.2.50.0040.00418.10
8.2.40.0050.00322.19
8.2.30.0040.00419.32
8.2.20.0030.00617.69
8.2.10.0000.00718.18
8.2.00.0090.00017.73
8.1.280.0200.00025.92
8.1.270.0030.00621.96
8.1.260.0100.00726.35
8.1.250.0090.00028.09
8.1.240.0030.00723.98
8.1.230.0050.00522.74
8.1.220.0000.00817.78
8.1.210.0030.00718.77
8.1.200.0100.00017.35
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0080.00018.86
8.1.160.0000.00818.71
8.1.150.0070.00018.79
8.1.140.0000.00817.35
8.1.130.0030.00317.79
8.1.120.0040.00417.43
8.1.110.0000.00717.30
8.1.100.0090.00017.34
8.1.90.0000.00817.38
8.1.80.0000.00717.42
8.1.70.0070.00017.41
8.1.60.0040.00417.52
8.1.50.0040.00417.45
8.1.40.0000.01217.48
8.1.30.0000.00817.68
8.1.20.0050.00317.47
8.1.10.0000.00817.38
8.1.00.0050.00317.52
8.0.300.0070.00019.60
8.0.290.0030.00516.75
8.0.280.0000.00718.38
8.0.270.0070.00017.28
8.0.260.0030.00817.21
8.0.250.0000.00716.93
8.0.240.0070.00016.99
8.0.230.0050.00316.98
8.0.220.0030.00316.82
8.0.210.0030.00316.96
8.0.200.0030.00316.92
8.0.190.0060.00317.01
8.0.180.0040.00416.90
8.0.170.0030.00517.02
8.0.160.0030.00316.85
8.0.150.0030.00316.95
8.0.140.0000.00716.84
8.0.130.0020.00513.36
8.0.120.0040.00416.93
8.0.110.0040.00417.00
8.0.100.0050.00216.77
8.0.90.0070.00016.97
8.0.80.0030.01216.97
8.0.70.0070.00016.94
8.0.60.0040.00416.86
8.0.50.0000.00717.00
8.0.30.0130.00617.13
8.0.20.0080.01017.40
8.0.10.0030.00516.86
8.0.00.0030.01416.86
7.4.330.0000.00515.03
7.4.320.0030.00316.63
7.4.300.0000.00616.58
7.4.290.0000.00716.51
7.4.280.0030.00316.54
7.4.270.0030.00316.62
7.4.260.0000.00716.55
7.4.250.0030.00616.59
7.4.240.0050.00216.53
7.4.230.0050.00316.46
7.4.220.0100.00716.61
7.4.210.0080.00816.45
7.4.200.0070.00016.62
7.4.160.0160.00016.48
7.4.150.0060.01217.40
7.4.140.0100.00817.86
7.4.130.0110.00916.56
7.4.120.0080.00916.44
7.4.110.0030.01316.54
7.4.100.0080.00816.53
7.4.90.0100.00716.48
7.4.80.0110.00819.39
7.4.70.0090.00916.52
7.4.60.0100.00716.50
7.4.50.0040.00416.23
7.4.40.0090.01316.57
7.4.30.0090.00916.52
7.4.00.0080.00814.92
7.3.330.0030.00313.39
7.3.320.0000.00513.44
7.3.310.0030.00316.50
7.3.300.0000.00716.31
7.3.290.0090.00916.40
7.3.280.0060.01116.42
7.3.270.0100.01317.40
7.3.260.0130.00316.35
7.3.250.0100.00616.55
7.3.240.0150.00016.45
7.3.230.0060.00916.57
7.3.210.0130.00716.53
7.3.200.0090.00919.39
7.3.190.0110.00816.49
7.3.180.0000.01816.43
7.3.170.0120.00616.52
7.3.160.0080.00816.51
7.2.330.0040.01416.62
7.2.320.0100.00716.42
7.2.310.0080.01116.32
7.2.300.0130.00416.41
7.2.290.0060.01816.66
7.2.00.0000.01219.23
7.1.100.0070.01117.61
7.1.70.0080.00017.17
7.1.60.0120.00619.34
7.1.50.0120.00916.94
7.1.00.0000.08022.48
7.0.200.0070.01016.69
7.0.140.0130.06321.95
7.0.60.0100.06319.93
7.0.50.0070.05317.87
7.0.40.0000.08320.26
7.0.30.0470.04020.11
7.0.20.0370.07320.09
7.0.10.0130.08320.22
7.0.00.0030.04720.14
5.6.280.0130.06320.93
5.6.210.0100.08020.67
5.6.200.0070.08018.21
5.6.190.0200.07720.50
5.6.180.0330.05020.41
5.6.170.0430.06720.71
5.6.160.0100.06020.55
5.6.150.0130.07718.22
5.6.140.0030.08718.19
5.6.130.0100.07718.18
5.6.120.0130.08321.00
5.6.110.0100.07020.99
5.6.100.0100.04021.09
5.6.90.0100.08021.16
5.6.80.0030.08020.38
5.6.70.3930.03320.38
5.5.350.0000.09320.43
5.5.340.0000.04717.98
5.5.330.0100.08320.43
5.5.320.0230.08320.51
5.5.310.0270.07720.34
5.5.300.0070.07717.92
5.5.290.0100.05017.98
5.5.280.0170.07720.88
5.5.270.0030.08720.65
5.5.260.0200.07320.85
5.5.250.0030.06720.50
5.5.240.0070.04320.27
5.4.450.0530.05037.91
5.4.440.0130.04737.91
5.4.430.0330.04037.90
5.4.420.0130.05719.54
5.4.410.0170.05718.95
5.4.400.0130.05718.84
5.4.390.0170.05018.73
5.4.380.0230.04318.63
5.4.370.0170.04718.76
5.4.360.0000.07018.79
5.4.350.0100.03713.82
5.4.340.0070.04013.78
5.4.320.0070.04314.29
5.4.310.0030.04714.41
5.4.300.0100.03714.25
5.4.290.0070.04314.29
5.4.280.0170.03314.21
5.4.270.0070.04014.19
5.4.260.0100.03714.17
5.4.250.0230.04314.17
5.4.240.0100.04314.17
5.4.230.0100.04014.29
5.4.220.0100.03714.37
5.4.210.0100.03714.16
5.4.200.0070.04014.13
5.4.190.0130.03714.13
5.4.180.0070.04314.29
5.4.170.0200.03014.14
5.4.160.0100.03714.15
5.4.150.0130.04014.14
5.4.140.0130.03313.83
5.4.130.0100.04713.84
5.4.120.0100.04013.82
5.4.110.0130.03313.77
5.4.100.0100.04013.73
5.4.90.0100.04013.92
5.4.80.0130.03313.83
5.4.70.0070.04013.99
5.4.60.0070.04313.91
5.4.50.0200.03013.72
5.4.40.0130.03713.79
5.4.30.0200.03013.71
5.4.20.0130.03313.77
5.4.10.0100.03713.86
5.4.00.0030.04713.27
5.3.290.0130.04014.79
5.3.280.0130.04014.77
5.3.270.0100.04314.75
5.3.260.0100.04314.58
5.3.250.0100.05314.64
5.3.240.0130.04014.60
5.3.230.0130.03314.64
5.3.220.0170.03714.52
5.3.210.0100.04314.52
5.3.200.0100.04314.67
5.3.190.0130.04314.68
5.3.180.0100.04014.58
5.3.170.0030.04014.71
5.3.160.0000.04314.68
5.3.150.0100.03314.63
5.3.140.0230.03314.57
5.3.130.0030.04014.52
5.3.120.0130.03714.47
5.3.110.0030.04314.54
5.3.100.0030.04014.05
5.3.90.0100.04314.14
5.3.80.0100.03714.00
5.3.70.0200.03714.14
5.3.60.0130.04313.93
5.3.50.0100.04714.01
5.3.40.0070.04014.00
5.3.30.0130.03014.00
5.3.20.0070.03713.83
5.3.10.0070.04013.66
5.3.00.0100.03313.56
5.2.170.0100.02711.27
5.2.160.0070.02711.16
5.2.150.0030.03711.12
5.2.140.0030.03311.16
5.2.130.0000.03711.06
5.2.120.0030.03711.23
5.2.110.0030.03011.24
5.2.100.0100.02311.05
5.2.90.0000.03711.14
5.2.80.0030.03311.12
5.2.70.0070.03311.10
5.2.60.0130.03011.10
5.2.50.0030.03310.95
5.2.40.0000.03311.04
5.2.30.0130.03311.02
5.2.20.0030.03311.08
5.2.10.0030.03010.88
5.2.00.0030.03310.77
5.1.60.0030.0239.98
5.1.50.0130.02010.07
5.1.40.0070.0239.99
5.1.30.0030.02710.48
5.1.20.0070.03010.49
5.1.10.0030.02710.21
5.1.00.0000.03010.04
5.0.50.0030.0238.73
5.0.40.0030.0208.39
5.0.30.0000.0378.20
5.0.20.0030.0208.16
5.0.10.0070.0178.24
5.0.00.0030.0308.13
4.4.90.0070.0135.87
4.4.80.0030.0175.89
4.4.70.0000.0175.84
4.4.60.0000.0175.90
4.4.50.0070.0135.86
4.4.40.0030.0235.80
4.4.30.0000.0205.85
4.4.20.0030.0135.95
4.4.10.0030.0176.05
4.4.00.0030.0235.83
4.3.110.0000.0175.77
4.3.100.0000.0205.77
4.3.90.0030.0135.73
4.3.80.0000.0305.74
4.3.70.0030.0135.83
4.3.60.0030.0175.79
4.3.50.0070.0135.84
4.3.40.0070.0235.70
4.3.30.0030.0174.61
4.3.20.0030.0134.45
4.3.10.0000.0174.46
4.3.00.0030.01737.90

preferences:
39.36 ms | 401 KiB | 5 Q