3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ERROR); function exception_error_handler($errno, $errstr, $errfile, $errline, $errcontext) { echo 'as'; /* if (error_reporting() == 0) { return; } //if (error_reporting() & $severity) { throw new ErrorException($message, 0, $severity, $filename, $lineno); //} */ // will be caught by FunkyExceptionHandler if not handled throw new ErrorException($errstr, 0, $errno, $errfile, $errline, $errcontext); return false; } set_error_handler("exception_error_handler", error_reporting()); throw new 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.0150.00318.66
8.3.50.0130.00521.21
8.3.40.0090.00618.58
8.3.30.0070.00720.34
8.3.20.0000.00820.35
8.3.10.0100.00721.92
8.3.00.0040.00422.37
8.2.180.0110.00716.50
8.2.170.0140.00322.96
8.2.160.0040.01122.26
8.2.150.0060.00324.18
8.2.140.0090.00624.66
8.2.130.0080.00026.16
8.2.120.0040.01120.65
8.2.110.0000.00919.45
8.2.100.0030.01317.66
8.2.90.0050.00319.22
8.2.80.0060.00317.97
8.2.70.0000.00917.63
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0040.00418.16
8.2.30.0070.00019.48
8.2.20.0040.00417.58
8.2.10.0030.00517.65
8.2.00.0040.00717.80
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0000.00922.67
8.1.230.0060.00617.70
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0070.00317.35
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00818.55
8.1.160.0040.00418.82
8.1.150.0020.00518.63
8.1.140.0050.00317.45
8.1.130.0030.00317.75
8.1.120.0040.00417.42
8.1.110.0020.00517.41
8.1.100.0000.00717.24
8.1.90.0000.00817.37
8.1.80.0000.00717.43
8.1.70.0000.00717.36
8.1.60.0030.00517.54
8.1.50.0000.00717.45
8.1.40.0040.00417.43
8.1.30.0000.00817.52
8.1.20.0030.00517.60
8.1.10.0000.00717.46
8.1.00.0050.00517.33
8.0.300.0070.00018.77
8.0.290.0030.00616.63
8.0.280.0000.00718.43
8.0.270.0000.00817.19
8.0.260.0030.00316.70
8.0.250.0030.00316.95
8.0.240.0060.00316.95
8.0.230.0000.00716.88
8.0.220.0070.00016.88
8.0.210.0040.00416.92
8.0.200.0030.00316.93
8.0.190.0070.00016.96
8.0.180.0000.00816.78
8.0.170.0070.00016.89
8.0.160.0000.00716.82
8.0.150.0100.00016.84
8.0.140.0000.00716.86
8.0.130.0060.00013.36
8.0.120.0030.00616.80
8.0.110.0080.00016.97
8.0.100.0000.00717.06
8.0.90.0050.00216.94
8.0.80.0070.00716.95
8.0.70.0030.00516.84
8.0.60.0000.00816.93
8.0.50.0040.00416.88
8.0.30.0130.00517.01
8.0.20.0130.00517.40
8.0.10.0050.00316.89
8.0.00.0060.01116.75
7.4.330.0030.00315.00
7.4.320.0000.00716.34
7.4.300.0060.00016.52
7.4.290.0070.00016.47
7.4.280.0030.00416.53
7.4.270.0000.00616.57
7.4.260.0000.00513.13
7.4.250.0040.00416.49
7.4.240.0050.00216.55
7.4.230.0080.00016.34
7.4.220.0110.00716.48
7.4.210.0050.01116.50
7.4.200.0080.00016.42
7.4.190.0030.00316.59
7.4.160.0060.00916.41
7.4.150.0130.01017.40
7.4.140.0090.00817.86
7.4.130.0050.01216.60
7.4.120.0120.00816.39
7.4.110.0150.00416.21
7.4.100.0130.00516.64
7.4.90.0090.00916.41
7.4.80.0070.01019.39
7.4.70.0070.01116.42
7.4.60.0090.00616.61
7.4.50.0000.00816.59
7.4.40.0090.00322.77
7.4.30.0060.01216.54
7.4.00.0040.01115.13
7.3.330.0050.00013.24
7.3.320.0050.00013.21
7.3.310.0040.00416.28
7.3.300.0030.00316.29
7.3.290.0030.01016.29
7.3.280.0080.01116.26
7.3.270.0070.01017.40
7.3.260.0140.00916.33
7.3.250.0110.00916.41
7.3.240.0100.00716.42
7.3.230.0090.00916.41
7.3.210.0130.00316.45
7.3.200.0000.01719.39
7.3.190.0150.00616.48
7.3.180.0090.01216.29
7.3.170.0120.00416.52
7.3.160.0060.01016.45
7.3.120.0070.00714.63
7.2.330.0120.00616.61
7.2.320.0130.00716.32
7.2.310.0130.00716.57
7.2.300.0130.00316.48
7.2.290.0070.01016.61
7.2.60.0070.00716.89
7.2.00.0000.01019.52
7.1.200.0060.00915.79
7.1.100.0070.00418.20
7.1.70.0030.00317.05
7.1.60.0100.01319.32
7.1.50.0140.01016.81
7.1.00.0030.04722.35
7.0.200.0000.00816.47
7.0.140.0000.07021.99
7.0.60.0170.07319.91
7.0.50.0030.08017.88
7.0.40.0100.08020.32
7.0.30.0370.04320.13
7.0.20.0200.04320.33
7.0.10.0070.08320.22
7.0.00.0070.07020.32
5.6.280.0130.06321.09
5.6.210.0100.07720.53
5.6.200.0030.09018.21
5.6.190.0130.05320.48
5.6.180.0200.06720.60
5.6.170.0370.07720.66
5.6.160.0070.08020.48
5.6.150.0070.08318.18
5.6.140.0070.06318.17
5.6.130.0100.06318.14
5.6.120.0070.03720.99
5.6.110.0100.08720.96
5.6.100.0030.04021.00
5.6.90.0130.07721.13
5.6.80.0070.07320.39
5.6.70.4370.03720.41
5.5.350.0070.08320.39
5.5.340.0100.08317.95
5.5.330.0100.05020.43
5.5.320.0330.06020.27
5.5.310.0300.07320.28
5.5.300.0070.07318.04
5.5.290.0000.09017.92
5.5.280.0030.05720.96
5.5.270.0030.08320.72
5.5.260.0100.08020.76
5.5.250.0170.07320.68
5.5.240.0070.05720.16
5.4.450.3700.03719.38
5.4.440.3970.03719.43
5.4.430.3830.03719.38
5.4.420.3870.04019.37
5.4.410.3730.04319.43
5.4.400.3630.04019.23
5.4.390.3570.04319.13
5.4.380.3670.03318.98
5.4.370.4270.04319.15
5.4.360.3700.03718.95
5.4.350.3630.03019.22
5.4.340.3870.04019.22
5.4.320.3670.05019.23
5.4.310.3830.04018.93
5.4.300.3630.04018.98
5.4.290.3530.04019.28
5.4.280.3830.04019.13
5.4.270.3470.03719.25
5.4.260.3900.03719.20
5.4.250.3830.04019.19
5.4.240.3870.03019.19
5.4.230.3670.03318.94
5.4.220.3800.03719.14
5.4.210.3870.03719.05
5.4.200.3900.03719.22
5.4.190.3530.03319.25
5.4.180.3870.03719.25
5.4.170.3800.04019.10
5.4.160.3600.03719.19
5.4.150.1830.04319.18
5.4.140.0100.03016.47
5.4.130.4500.03316.30
5.4.120.4370.04016.46
5.4.110.3930.03316.52
5.4.100.3870.03716.56
5.4.90.3700.03016.45
5.4.80.4200.04016.24
5.4.70.4400.04016.30
5.4.60.4570.03716.61
5.4.50.4100.03716.61
5.4.40.0030.04316.29
5.4.30.0030.04016.50
5.4.20.3870.03716.49
5.4.10.3770.04016.45
5.4.00.3900.03315.84
5.3.290.4930.03714.68
5.3.280.3900.04314.60
5.3.270.4030.04714.65
5.3.260.3830.04014.61
5.3.250.0070.07314.65
5.3.240.0070.07314.49
5.3.230.4170.04014.59
5.3.220.3930.03714.71
5.3.210.3670.03314.71
5.3.200.3870.03314.65
5.3.190.4000.03714.48
5.3.180.3770.03314.61
5.3.170.4270.03714.63
5.3.160.3830.05014.57
5.3.150.4500.03314.45
5.3.140.1770.03714.55
5.3.130.0000.05314.57
5.3.120.3600.03314.45
5.3.110.3930.03714.54
5.3.100.2900.05014.07
5.3.90.3800.03714.04
5.3.80.3870.03713.92
5.3.70.3730.03714.09
5.3.60.4270.03014.05
5.3.50.3600.03314.09
5.3.40.3730.03013.97
5.3.30.4070.03313.92
5.3.20.4300.03313.64
5.3.10.4600.02713.66
5.3.00.3830.03713.53
5.2.170.3100.03011.22
5.2.160.3270.03011.20
5.2.150.3670.03311.21
5.2.140.3100.02711.11
5.2.130.3800.02711.16
5.2.120.3900.03011.10
5.2.110.3500.04011.18
5.2.100.3100.03311.10
5.2.90.3330.03311.00
5.2.80.3200.03011.17
5.2.70.3300.02710.98
5.2.60.3200.03011.07
5.2.50.3270.03311.07
5.2.40.2970.02711.04
5.2.30.2870.03010.94
5.2.20.2830.02710.96
5.2.10.3830.03310.93
5.2.00.3200.01710.86
5.1.60.2830.02010.04
5.1.50.2770.02310.15
5.1.40.3100.0309.96
5.1.30.3130.02710.48
5.1.20.3130.02010.34
5.1.10.2830.02310.11
5.1.00.2430.02310.13
5.0.50.1170.0238.54
5.0.40.1270.0208.48
5.0.30.1170.0278.20
5.0.20.1230.0208.22
5.0.10.1270.0208.21
5.0.00.1200.0308.30
4.4.90.1530.0136.02
4.4.80.1100.0236.02
4.4.70.1730.0176.02
4.4.60.0930.0176.02
4.4.50.1400.0136.02
4.4.40.1470.0276.02
4.4.30.1670.0176.02
4.4.20.1470.0176.02
4.4.10.1200.0176.02
4.4.00.1170.0276.02
4.3.110.1200.0176.02
4.3.100.1230.0136.02
4.3.90.1000.0106.02
4.3.80.1200.0236.02
4.3.70.1200.0176.02
4.3.60.1200.0136.02
4.3.50.0530.0136.02
4.3.40.0630.0276.02
4.3.30.0630.0176.02
4.3.20.0630.0136.02
4.3.10.0470.0206.02
4.3.00.0530.0206.02

preferences:
57.37 ms | 400 KiB | 5 Q