3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CErrorException extends Exception {} function handleError($level, $message, $file, $line){ if( error_reporting() != 0){ throw new CErrorException($message, $level); } } function handleException($exception){ var_dump('Exception handled at global level'); } set_error_handler('handleError'); set_exception_handler('handleException'); try { require_once('non\existent\file'); //Will generate an error and cause an exception to be thrown. } catch (Exception $e) { var_dump("let's deal with the exception"); }

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.0110.01118.22
8.3.50.0100.00521.07
8.3.40.0070.00718.71
8.3.30.0100.00518.88
8.3.20.0000.00818.95
8.3.10.0050.00320.92
8.3.00.0080.00023.48
8.2.180.0110.01116.73
8.2.170.0100.01022.96
8.2.160.0090.00620.35
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.07
8.2.110.0040.00420.55
8.2.100.0050.00517.72
8.2.90.0030.00619.08
8.2.80.0040.00418.16
8.2.70.0050.00317.63
8.2.60.0090.00018.05
8.2.50.0030.00618.07
8.2.40.0040.00417.91
8.2.30.0080.00019.96
8.2.20.0000.00717.59
8.2.10.0040.00417.73
8.2.00.0070.00417.66
8.1.280.0070.00725.92
8.1.270.0030.00623.99
8.1.260.0070.01326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.61
8.1.230.0080.00320.96
8.1.220.0090.00018.77
8.1.210.0040.00419.04
8.1.200.0030.00617.23
8.1.190.0000.00717.53
8.1.180.0070.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00418.80
8.1.150.0080.00018.55
8.1.140.0080.00017.48
8.1.130.0030.00317.82
8.1.120.0040.00417.48
8.1.110.0040.00417.35
8.1.100.0050.00217.38
8.1.90.0000.00717.49
8.1.80.0040.00417.42
8.1.70.0070.00017.48
8.1.60.0040.00417.57
8.1.50.0000.00717.53
8.1.40.0040.00417.49
8.1.30.0040.00417.70
8.1.20.0060.00317.71
8.1.10.0030.00517.58
8.1.00.0040.00417.57
8.0.300.0040.00419.98
8.0.290.0040.00417.30
8.0.280.0040.00418.45
8.0.270.0040.00417.31
8.0.260.0070.00016.84
8.0.250.0050.00217.13
8.0.240.0040.00417.00
8.0.230.0000.00716.96
8.0.220.0030.00316.99
8.0.210.0030.00317.03
8.0.200.0080.00016.96
8.0.190.0040.00417.08
8.0.180.0080.00016.95
8.0.170.0050.00317.05
8.0.160.0000.00816.97
8.0.150.0000.00816.94
8.0.140.0070.00017.02
8.0.130.0000.00513.53
8.0.120.0050.00316.98
8.0.110.0030.00516.82
8.0.100.0040.00416.92
8.0.90.0040.00417.05
8.0.80.0060.00917.00
8.0.70.0070.00016.86
8.0.60.0000.00717.08
8.0.50.0040.00416.97
8.0.30.0110.01017.07
8.0.20.0130.00617.40
8.0.10.0000.00717.05
8.0.00.0110.00816.78
7.4.330.0050.00014.70
7.4.320.0030.00316.47
7.4.300.0030.00316.59
7.4.290.0000.00716.62
7.4.280.0030.00516.59
7.4.270.0070.00016.63
7.4.260.0000.00613.29
7.4.250.0030.00316.59
7.4.240.0000.00716.64
7.4.230.0030.00316.38
7.4.220.0030.01216.48
7.4.210.0080.00916.59
7.4.200.0040.00416.65
7.4.190.0050.00316.42
7.4.160.0040.01216.38
7.4.150.0120.00617.40
7.4.140.0070.01117.86
7.4.130.0100.00616.61
7.4.120.0050.01616.63
7.4.110.0070.01316.48
7.4.100.0100.01316.49
7.4.90.0170.00616.49
7.4.80.0110.00819.37
7.4.70.0120.00616.59
7.4.60.0070.01016.39
7.4.50.0030.00616.37
7.4.40.0030.00922.27
7.4.30.0120.00616.47
7.4.00.0110.00414.87
7.3.330.0060.00013.26
7.3.320.0000.00613.37
7.3.310.0030.00316.25
7.3.300.0070.00016.31
7.3.290.0060.01316.41
7.3.280.0080.00816.42
7.3.270.0090.00917.40
7.3.260.0070.01018.24
7.3.250.0110.00816.52
7.3.240.0110.01116.42
7.3.230.0160.00316.39
7.3.210.0040.02216.39
7.3.200.0070.01119.39
7.3.190.0030.01316.45
7.3.180.0160.00716.53
7.3.170.0040.01516.37
7.3.160.0100.00716.34
7.3.120.0100.00315.08
7.3.10.0070.00716.56
7.3.00.0110.00416.80
7.2.330.0070.01016.64
7.2.320.0150.00916.66
7.2.310.0100.01016.43
7.2.300.0110.01116.75
7.2.290.0040.01516.65
7.2.130.0040.01016.75
7.2.120.0030.00816.70
7.2.110.0030.01016.87
7.2.100.0040.01117.03
7.2.90.0040.00817.01
7.2.80.0090.00316.80
7.2.70.0030.01016.77
7.2.60.0050.00916.84
7.2.50.0060.00616.86
7.2.40.0060.00317.05
7.2.30.0040.00716.74
7.2.20.0000.01416.85
7.2.10.0040.01116.95
7.2.00.0030.01216.97
7.1.250.0030.00915.57
7.1.200.0040.01116.03
7.1.100.0000.01117.79
7.1.70.0040.00417.28
7.1.60.0090.01519.40
7.1.50.0140.00716.58
7.1.00.0030.07322.32
7.0.200.0050.00316.70
7.0.140.0070.07022.00
7.0.60.0070.05720.08
7.0.50.0070.08017.87
7.0.40.0130.04017.85
7.0.30.0070.06317.77
7.0.20.0030.08317.81
7.0.10.0000.05017.70
7.0.00.0100.08317.75
5.6.280.0100.06720.96
5.6.210.0170.07320.62
5.6.200.0170.07318.16
5.6.190.0030.08718.24
5.6.180.0070.06718.28
5.6.170.0070.04318.29
5.6.160.0070.05318.29
5.6.150.0170.07318.20
5.6.140.0030.07018.15
5.6.130.0030.08018.19
5.6.120.0000.05718.19
5.6.110.0100.07718.15
5.6.100.0030.04318.27
5.6.90.0070.09018.15
5.6.80.0130.06317.51
5.6.70.0000.07317.52
5.6.60.0070.04317.66
5.6.50.0070.05317.51
5.6.40.0030.06717.55
5.6.30.0070.08017.55
5.6.20.0030.06017.64
5.6.10.0100.04317.48
5.6.00.0070.07317.50
5.5.350.0130.07320.51
5.5.340.0100.03717.98
5.5.330.0070.07717.96
5.5.320.0100.06718.10
5.5.310.0100.04717.96
5.5.300.0100.08018.07
5.5.290.0170.06317.95
5.5.280.0000.08717.96
5.5.270.0030.04318.08
5.5.260.0100.05017.96
5.5.250.0130.04717.79
5.5.240.0130.07317.32
5.5.230.0030.05717.37
5.5.220.0070.07717.36
5.5.210.0130.05717.36
5.5.200.0100.05317.38
5.5.190.0070.08017.46
5.5.180.0130.06017.31
5.5.160.0070.07017.35
5.5.150.0070.04017.34
5.5.140.0000.04017.32
5.5.130.0030.03717.34
5.5.120.0100.04017.31
5.5.110.0000.04017.43
5.5.100.0070.03317.25
5.5.90.0030.03717.22
5.5.80.0070.03317.21
5.5.70.0000.04717.26
5.5.60.0070.03717.29
5.5.50.0030.03717.20
5.5.40.0100.03017.22
5.5.30.0100.03017.32
5.5.20.0070.04017.19
5.5.10.0030.03717.32
5.5.00.0000.04017.30
5.4.450.0130.04719.41
5.4.440.0070.03719.46
5.4.430.0070.06319.34
5.4.420.0070.07719.36
5.4.410.0130.04319.47
5.4.400.0100.03319.02
5.4.390.0100.05019.02
5.4.380.0200.05718.96
5.4.370.0070.06318.97
5.4.360.0200.06319.28
5.4.350.0070.05019.31
5.4.340.0070.08019.04
5.4.320.0000.04719.06
5.4.310.0070.03318.99
5.4.300.0030.03719.03
5.4.290.0000.04019.09
5.4.280.0000.04019.13
5.4.270.0000.04019.04
5.4.260.0070.03318.96
5.4.250.0030.03719.09
5.4.240.0070.03319.06
5.4.230.0000.04019.03
5.4.220.0030.03718.89
5.4.210.0000.05019.31
5.4.200.0030.03719.04
5.4.190.0030.03719.13
5.4.180.0070.03319.04
5.4.170.0100.03019.04
5.4.160.0070.03319.04
5.4.150.0000.04019.10
5.4.140.0030.03316.48
5.4.130.0030.03316.59
5.4.120.0000.03716.29
5.4.110.0030.03716.44
5.4.100.0000.04016.46
5.4.90.0070.03016.46
5.4.80.0000.03716.59
5.4.70.0000.03716.43
5.4.60.0000.06316.39
5.4.50.0030.07316.43
5.4.40.0030.07316.38
5.4.30.0070.05316.44
5.4.20.0030.07716.40
5.4.10.0070.06716.21
5.4.00.0030.05315.81
5.3.290.0000.04014.54
5.3.280.0030.04314.46
5.3.270.0070.03314.64
5.3.260.0070.03314.84
5.3.250.0030.05014.69
5.3.240.0030.03314.66
5.3.230.0030.03714.66
5.3.220.0030.03314.58
5.3.210.0000.04014.57
5.3.200.0030.03314.62
5.3.190.0070.03314.64
5.3.180.0030.03314.61
5.3.170.0030.03714.61
5.3.160.0030.03714.65
5.3.150.0170.05014.54
5.3.140.0070.07714.60
5.3.130.0100.07314.52
5.3.120.0070.05314.64
5.3.110.0100.07314.58
5.3.100.0130.07014.07
5.3.90.0070.06314.03
5.3.80.0070.05014.25
5.3.70.0070.04314.06
5.3.60.0070.03313.87
5.3.50.0130.07013.98
5.3.40.0100.03014.06
5.3.30.0100.05714.00
5.3.20.0070.04013.82
5.3.10.0130.06013.66
5.3.00.0070.03313.54
5.2.170.0030.06711.21
5.2.160.0000.04311.05
5.2.150.0030.06711.06
5.2.140.0070.03311.18
5.2.130.0100.06011.08
5.2.120.0100.05011.18
5.2.110.0000.06311.02
5.2.100.0000.05711.16
5.2.90.0000.03711.16
5.2.80.0000.07011.07
5.2.70.0100.05711.15
5.2.60.0000.03711.28
5.2.50.0030.04710.88
5.2.40.0070.03310.92
5.2.30.0070.02711.08
5.2.20.0070.05710.95
5.2.10.0070.04710.93
5.2.00.0000.05710.76
5.1.60.0070.0279.85
5.1.50.0030.02310.00
5.1.40.0030.05710.04
5.1.30.0030.06310.41
5.1.20.0130.03310.38
5.1.10.0000.03310.09
5.1.00.0030.02710.06
5.0.50.0070.0338.59
5.0.40.0070.0378.41
5.0.30.0000.0578.32
5.0.20.0100.0378.23
5.0.10.0030.0378.12
5.0.00.0030.0378.15
4.4.90.0000.0177.86
4.4.80.0030.0337.86
4.4.70.0030.0337.86
4.4.60.0000.0377.86
4.4.50.0070.0237.86
4.4.40.0070.0207.86
4.4.30.0030.0277.86
4.4.20.0000.0207.86
4.4.10.0030.0377.86
4.4.00.0000.0307.86
4.3.110.0070.0277.86
4.3.100.0030.0337.86
4.3.90.0000.0277.86
4.3.80.0030.0307.86
4.3.70.0070.0307.86
4.3.60.0000.0377.86
4.3.50.0000.0337.86
4.3.40.0070.0507.86
4.3.30.0000.0207.86
4.3.20.0000.0177.86
4.3.10.0030.0137.86
4.3.00.0000.0177.86

preferences:
50.98 ms | 401 KiB | 5 Q