3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handler = function() { echo 'error handler!'; throw new \ErrorException(); }; register_shutdown_function($handler); set_error_handler($handler); try { fatal_error(); } catch (\Exception $e) { echo 'caught!'; } echo 'done';

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.0060.00916.63
8.3.50.0100.00922.05
8.3.40.0140.00718.91
8.3.30.0140.00019.05
8.3.20.0000.00720.17
8.3.10.0040.00423.66
8.3.00.0080.00019.38
8.2.180.0110.01118.50
8.2.170.0040.01122.96
8.2.160.0110.00420.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0110.00326.16
8.2.120.0050.00322.25
8.2.110.0030.00622.25
8.2.100.0040.00717.84
8.2.90.0000.00819.03
8.2.80.0060.00318.16
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0000.00819.94
8.2.30.0040.00419.90
8.2.20.0040.00417.78
8.2.10.0000.00717.94
8.2.00.0000.01317.75
8.1.280.0040.01125.92
8.1.270.0030.00523.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0040.00819.12
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.25
8.1.190.0080.00017.52
8.1.180.0030.00618.10
8.1.170.0000.00818.51
8.1.160.0090.00022.03
8.1.150.0040.00418.61
8.1.140.0050.00217.45
8.1.130.0030.00317.89
8.1.120.0070.00017.50
8.1.110.0020.00517.46
8.1.100.0030.00517.53
8.1.90.0050.00317.49
8.1.80.0040.00417.48
8.1.70.0030.00317.38
8.1.60.0020.00517.60
8.1.50.0000.00817.36
8.1.40.0040.00417.46
8.1.30.0050.00317.61
8.1.20.0030.00617.70
8.1.10.0070.00017.58
8.1.00.0050.00217.48
8.0.300.0040.00418.86
8.0.290.0000.00817.28
8.0.280.0000.00718.45
8.0.270.0000.00717.26
8.0.260.0070.00017.29
8.0.250.0020.00516.84
8.0.240.0030.00316.93
8.0.230.0100.00016.82
8.0.220.0030.00316.75
8.0.210.0000.00716.90
8.0.200.0030.00316.87
8.0.190.0090.00017.00
8.0.180.0040.00416.98
8.0.170.0000.00817.01
8.0.160.0050.00216.77
8.0.150.0040.00416.91
8.0.140.0030.00616.96
8.0.130.0030.00313.30
8.0.120.0050.00316.94
8.0.110.0040.00416.88
8.0.100.0000.00716.89
8.0.90.0080.00016.73
8.0.80.0120.00316.92
8.0.70.0040.00416.93
8.0.60.0040.00416.74
8.0.50.0040.00416.91
8.0.30.0090.01017.15
8.0.20.0120.00717.40
8.0.10.0030.00516.91
8.0.00.0110.00816.77
7.4.330.0050.00015.14
7.4.320.0030.00316.57
7.4.300.0030.00316.43
7.4.290.0000.00716.48
7.4.280.0040.00416.50
7.4.270.0030.00316.46
7.4.260.0070.00016.57
7.4.250.0000.00816.55
7.4.240.0020.00616.58
7.4.230.0040.00416.59
7.4.220.0040.01316.55
7.4.210.0080.00716.68
7.4.200.0000.00716.66
7.4.190.0000.00816.66
7.4.160.0090.00616.40
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0100.01016.47
7.4.120.0080.00916.60
7.4.110.0070.01016.33
7.4.100.0190.00416.55
7.4.90.0070.01016.60
7.4.80.0210.00419.39
7.4.70.0060.01016.58
7.4.60.0140.00416.58
7.4.50.0000.00816.48
7.4.40.0080.00822.77
7.4.30.0080.00816.64
7.4.00.0030.01014.76
7.3.330.0030.00313.29
7.3.320.0060.00013.15
7.3.310.0070.00016.16
7.3.300.0040.00416.34
7.3.290.0130.00716.34
7.3.280.0060.01316.25
7.3.270.0110.00617.40
7.3.260.0110.00616.52
7.3.250.0120.00616.51
7.3.240.0180.00016.34
7.3.230.0100.01016.39
7.3.210.0070.01016.38
7.3.200.0120.00619.39
7.3.190.0130.00616.29
7.3.180.0120.00416.46
7.3.170.0030.01216.57
7.3.160.0090.00916.40
7.3.120.0070.00714.80
7.3.10.0110.00416.60
7.3.00.0070.00716.45
7.2.330.0080.00916.29
7.2.320.0090.01316.37
7.2.310.0150.00616.66
7.2.300.0060.01116.58
7.2.290.0080.00916.43
7.2.130.0000.01416.83
7.2.120.0030.01016.87
7.2.110.0030.00616.91
7.2.100.0060.00616.68
7.2.90.0070.00716.97
7.2.80.0120.00317.07
7.2.70.0100.00316.87
7.2.60.0080.00616.95
7.2.50.0030.01216.78
7.2.40.0030.01016.92
7.2.30.0080.00416.91
7.2.20.0040.00716.94
7.2.10.0000.01316.65
7.2.00.0050.00718.12
7.1.250.0070.00715.61
7.1.200.0030.01015.64
7.1.100.0090.00317.93
7.1.70.0000.00816.85
7.1.60.0100.01619.46
7.1.50.0140.01016.79
7.1.00.0000.08022.54
7.0.200.0000.00716.88
7.0.140.0070.07022.23
7.0.60.0230.08019.78
7.0.50.0070.08017.83
7.0.40.0000.04720.11
7.0.30.0300.07720.16
7.0.20.0200.09320.10
7.0.10.0070.04320.07
7.0.00.0030.06720.19
5.6.280.0170.06021.08
5.6.210.0000.04320.60
5.6.200.0070.08018.18
5.6.190.0070.08320.50
5.6.180.0100.05020.67
5.6.170.0270.06720.54
5.6.160.0030.06320.56
5.6.150.0030.04018.16
5.6.140.0100.07318.15
5.6.130.0030.06018.15
5.6.120.0130.08021.00
5.6.110.0100.07020.99
5.6.100.0000.04320.96
5.6.90.0030.05021.01
5.6.80.0070.07720.51
5.5.350.0170.07720.39
5.5.340.0030.04018.03
5.5.330.0100.05720.27
5.5.320.0230.04020.36
5.5.310.0170.04320.20
5.5.300.0030.08017.99
5.5.290.0100.08717.94
5.5.280.0000.04720.80
5.5.270.0100.08020.67
5.5.260.0130.07720.89
5.5.250.0130.08320.79
5.5.240.0230.03020.36
5.4.450.0930.07019.60
5.4.440.0800.06019.33
5.4.430.0700.06019.59
5.4.420.0100.05019.16
5.4.410.0830.05319.04
5.4.400.0200.06719.37
5.4.390.0100.05719.12
5.4.380.0370.05718.81
5.4.370.0430.04318.74
5.4.360.0270.06318.59
5.4.350.0330.05318.59
5.4.340.0270.05718.66
5.4.320.0040.04012.50
5.4.310.0070.03812.50
5.4.300.0070.04012.50
5.4.290.0080.04912.49
5.4.280.0120.03912.39
5.4.270.0060.05112.39
5.4.260.0140.05212.39
5.4.250.0100.05512.39
5.4.240.0090.05112.39
5.4.230.0150.05112.38
5.4.220.0090.04712.39
5.4.210.0100.05712.38
5.4.200.0090.04112.39
5.4.190.0080.04012.38
5.4.180.0100.04612.38
5.4.170.0080.04812.39
5.4.160.0090.04512.39
5.4.150.0200.11212.38
5.4.140.0110.04612.07
5.4.130.0130.04712.05
5.4.120.0070.04012.01
5.4.110.0080.03912.01
5.4.100.0100.04212.01
5.4.90.0080.05512.01
5.4.80.0080.03812.01
5.4.70.0060.03712.01
5.4.60.0060.03712.01
5.4.50.0070.03512.01
5.4.40.0040.04211.99
5.4.30.0160.04911.99
5.4.20.0090.05211.99
5.4.10.0070.03511.99
5.4.00.0040.04111.48
5.3.290.0080.04412.80
5.3.280.0080.06712.71
5.3.270.0130.05312.72
5.3.260.0100.05512.72
5.3.250.0100.04912.72
5.3.240.0070.04712.72
5.3.230.0070.04612.71
5.3.220.0070.06012.68
5.3.210.0060.04612.68
5.3.200.0090.05812.68
5.3.190.0080.05212.68
5.3.180.0090.05112.68
5.3.170.0070.04912.67
5.3.160.0080.04312.67
5.3.150.0080.04012.67
5.3.140.0060.04512.66
5.3.130.0040.05812.66
5.3.120.0060.04812.66
5.3.110.0110.05612.66
5.3.100.0040.04512.13
5.3.90.0070.04112.11
5.3.80.0060.03912.11
5.3.70.0080.03712.11
5.3.60.0050.04012.09
5.3.50.0020.04112.04
5.3.40.0050.04312.04
5.3.30.0100.06512.00
5.3.20.0070.03611.78
5.3.10.0120.03211.75
5.3.00.0050.04011.73
5.2.170.0050.0379.18
5.2.160.0060.0289.18
5.2.150.0050.0339.18
5.2.140.0050.0329.18
5.2.130.0070.0349.14
5.2.120.0040.0289.14
5.2.110.0020.0329.14
5.2.100.0050.0319.14
5.2.90.0030.0339.14
5.2.80.0100.0379.14
5.2.70.0070.0399.14
5.2.60.0070.0369.09
5.2.50.0050.0319.05
5.2.40.0060.0299.03
5.2.30.0050.0339.01
5.2.20.0070.0299.00
5.2.10.0020.0328.92
5.2.00.0080.0308.78
5.1.60.0050.0308.06
5.1.50.0090.0358.06
5.1.40.0080.0328.05
5.1.30.0040.0298.40
5.1.20.0060.0258.41
5.1.10.0030.0398.14
5.1.00.0090.0278.14
5.0.50.0060.0196.62
5.0.40.0040.0206.48
5.0.30.0050.0306.30
5.0.20.0070.0166.26
5.0.10.0050.0186.23
5.0.00.0020.0366.23
4.4.90.0020.0154.78
4.4.80.0070.0114.75
4.4.70.0040.0144.75
4.4.60.0030.0234.75
4.4.50.0030.0214.77
4.4.40.0040.0254.71
4.4.30.0010.0174.76
4.4.20.0040.0154.85
4.4.10.0030.0154.85
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0030.0154.66
4.3.90.0010.0164.64
4.3.80.0010.0274.58
4.3.70.0030.0144.63
4.3.60.0050.0124.63
4.3.50.0030.0164.63
4.3.40.0030.0254.54
4.3.30.0050.0163.29
4.3.20.0030.0203.26
4.3.10.0000.0193.22
4.3.00.0030.01310.54

preferences:
67.98 ms | 400 KiB | 5 Q