3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_PARSE); echo error_reporting(); 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()); $a;

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.00018.17
8.3.50.0100.00821.14
8.3.40.0150.00418.52
8.3.30.0100.00320.14
8.3.20.0110.00320.30
8.3.10.0080.00021.91
8.3.00.0040.00422.37
8.2.180.0040.01116.38
8.2.170.0070.00722.96
8.2.160.0070.01422.20
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0110.00026.16
8.2.120.0060.00920.88
8.2.110.0000.00922.26
8.2.100.0100.00017.78
8.2.90.0040.00418.93
8.2.80.0040.00419.21
8.2.70.0050.00517.63
8.2.60.0030.00617.90
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00719.48
8.2.20.0030.00617.62
8.2.10.0030.00517.67
8.2.00.0040.00717.59
8.1.280.0110.00425.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.68
8.1.230.0060.00619.14
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0050.00317.41
8.1.180.0090.00019.01
8.1.170.0000.00818.52
8.1.160.0050.00218.67
8.1.150.0040.00418.50
8.1.140.0000.00717.23
8.1.130.0000.00717.80
8.1.120.0000.00717.22
8.1.110.0040.00417.30
8.1.100.0030.00317.37
8.1.90.0030.00317.27
8.1.80.0070.00017.34
8.1.70.0000.00717.31
8.1.60.0040.00417.34
8.1.50.0000.00717.43
8.1.40.0040.00417.41
8.1.30.0040.00417.50
8.1.20.0080.00017.43
8.1.10.0000.00717.32
8.1.00.0100.00017.35
8.0.300.0030.00518.77
8.0.290.0070.00017.18
8.0.280.0040.00418.38
8.0.270.0030.00317.14
8.0.260.0030.00316.75
8.0.250.0040.00416.86
8.0.240.0000.00816.87
8.0.230.0000.00716.84
8.0.220.0040.00316.67
8.0.210.0030.00516.65
8.0.200.0070.00016.80
8.0.190.0040.00416.86
8.0.180.0000.00816.80
8.0.170.0040.00416.68
8.0.160.0030.00316.72
8.0.150.0070.00316.72
8.0.140.0000.00716.61
8.0.130.0060.00013.22
8.0.120.0040.00416.77
8.0.110.0070.00016.70
8.0.100.0000.00716.75
8.0.90.0000.00716.75
8.0.80.0120.00316.71
8.0.70.0040.00416.71
8.0.60.0070.00016.66
8.0.50.0040.00416.77
8.0.30.0100.00817.00
8.0.20.0080.00917.40
8.0.10.0030.00516.87
8.0.00.0100.01016.71
7.4.330.0020.00215.00
7.4.320.0000.00616.31
7.4.300.0000.00716.35
7.4.290.0030.00316.45
7.4.280.0000.00716.27
7.4.270.0070.00016.27
7.4.260.0040.00416.37
7.4.250.0050.00216.34
7.4.240.0030.00316.27
7.4.230.0000.00716.57
7.4.220.0090.00916.50
7.4.210.0050.01216.42
7.4.200.0080.00016.48
7.4.190.0000.00716.27
7.4.160.0060.01116.27
7.4.150.0120.00617.40
7.4.140.0150.00317.86
7.4.130.0090.01016.37
7.4.120.0090.01116.40
7.4.110.0100.00716.59
7.4.100.0100.01316.29
7.4.90.0070.01016.52
7.4.80.0160.00719.39
7.4.70.0100.00616.54
7.4.60.0070.01016.32
7.4.50.0000.00816.42
7.4.40.0080.00422.77
7.4.30.0140.00916.39
7.4.00.0090.00814.93
7.3.330.0000.00513.00
7.3.320.0000.00513.04
7.3.310.0050.00316.07
7.3.300.0000.00616.05
7.3.290.0130.00616.13
7.3.280.0110.00616.15
7.3.270.0060.01317.40
7.3.260.0090.00916.19
7.3.250.0130.00616.30
7.3.240.0100.00716.27
7.3.230.0060.00916.39
7.3.210.0110.00516.40
7.3.200.0060.01619.39
7.3.190.0130.00316.28
7.3.180.0070.01116.14
7.3.170.0100.00616.34
7.3.160.0030.01216.24
7.3.120.0040.01114.74
7.3.110.0070.01114.89
7.3.100.0000.01014.93
7.3.90.0040.00814.97
7.3.80.0070.00714.82
7.3.70.0040.01114.63
7.3.60.0030.01014.44
7.3.50.0090.00614.48
7.3.40.0000.01714.59
7.3.30.0060.00614.53
7.3.20.0060.01116.47
7.3.10.0070.00716.69
7.3.00.0120.00316.64
7.2.330.0070.01016.54
7.2.320.0060.01316.68
7.2.310.0060.01416.18
7.2.300.0060.01016.39
7.2.290.0080.00816.39
7.2.250.0060.00914.78
7.2.240.0060.01314.72
7.2.230.0000.01714.78
7.2.220.0060.00914.76
7.2.210.0000.01914.94
7.2.200.0150.00415.11
7.2.190.0110.00314.93
7.2.180.0040.01115.04
7.2.170.0060.01215.05
7.2.60.0000.01416.64
7.2.00.0000.01519.43
7.1.330.0060.00615.57
7.1.320.0000.01115.64
7.1.310.0090.00615.80
7.1.300.0000.01115.69
7.1.290.0040.01115.62
7.1.280.0120.00315.75
7.1.270.0040.00415.32
7.1.260.0070.00715.37
7.1.200.0060.00615.71
7.1.100.0000.01017.88
7.1.70.0040.00417.13
7.1.60.0070.01819.32
7.1.50.0100.01316.93
7.1.00.0100.02722.31
7.0.200.0040.00416.66
7.0.140.0000.08022.18
7.0.100.0200.03719.96
7.0.90.0470.06320.01
7.0.80.0470.05020.03
7.0.70.0470.07320.03
7.0.60.0500.07719.97
7.0.50.0570.06320.27
7.0.40.0100.08319.96
7.0.30.0070.05320.11
7.0.20.0070.08020.09
7.0.10.0030.08019.95
7.0.00.0100.07320.13
5.6.280.0100.07021.02
5.6.250.0070.07720.60
5.6.240.0030.09020.64
5.6.230.0100.04720.57
5.6.220.0070.07320.68
5.6.210.0000.06720.50
5.6.200.0070.08720.95
5.6.190.0100.08321.05
5.6.180.0030.08721.14
5.6.170.0000.09321.11
5.6.160.0200.07021.18
5.6.150.0130.07321.12
5.6.140.0070.08321.03
5.6.130.0100.07721.04
5.6.120.0130.04721.09
5.6.110.0030.09321.05
5.6.100.0030.08721.04
5.6.90.0100.08321.00
5.6.80.0070.07020.39
5.6.70.0070.07320.40
5.6.60.0070.08320.40
5.6.50.0130.07320.44
5.6.40.0070.07720.39
5.6.30.0030.08020.45
5.6.20.0170.03320.41
5.6.10.0100.04320.49
5.6.00.0070.04720.45
5.5.380.0030.08020.36
5.5.370.0030.08720.35
5.5.360.0030.09020.44
5.5.350.0070.07320.48
5.5.340.0070.08020.91
5.5.330.0130.07020.93
5.5.320.0030.07720.81
5.5.310.0170.07320.92
5.5.300.0100.08320.82
5.5.290.0070.09020.64
5.5.280.0070.07720.88
5.5.270.0000.09020.63
5.5.260.0030.05720.87
5.5.250.0070.07020.64
5.5.240.0070.07320.28
5.5.230.0070.08320.18
5.5.220.0030.08720.14
5.5.210.0130.07020.16
5.5.200.0100.06320.00
5.5.190.0030.09320.18
5.5.180.0100.07720.09
5.5.160.0000.05720.28
5.5.150.0030.08320.29
5.5.140.0100.06020.13
5.5.130.0130.07720.19
5.5.120.0130.06720.24
5.5.110.0070.08020.24
5.5.100.0030.08019.95
5.5.90.0100.06020.05
5.5.80.0170.07020.07
5.5.70.0030.05020.15
5.5.60.0100.07720.15
5.5.50.0100.07320.06
5.5.40.0030.07019.94
5.5.30.0030.07720.10
5.5.20.0100.06720.05
5.5.10.0130.06720.14
5.5.00.0070.08020.13
5.4.450.0070.08019.18
5.4.440.0100.07319.45
5.4.430.0070.07319.20
5.4.420.0100.07319.48
5.4.410.0030.08319.32
5.4.400.0030.05719.17
5.4.390.0030.07719.03
5.4.380.0100.07019.03
5.4.370.0170.05019.10
5.4.360.0030.08018.95
5.4.350.0070.07719.24
5.4.340.0170.06319.21
5.4.320.0030.08019.13
5.4.310.0070.06318.88
5.4.300.0100.07319.03
5.4.290.0070.07319.12
5.4.280.0130.07019.03
5.4.270.0070.07718.88
5.4.260.0070.07319.04
5.4.250.0070.07319.16
5.4.240.0030.07319.16
5.4.230.0100.07719.03
5.4.220.0130.06718.84
5.4.210.0030.06719.02
5.4.200.0030.05019.12
5.4.190.0030.07018.90
5.4.180.0170.06719.23
5.4.170.0100.07719.03
5.4.160.0000.07719.18
5.4.150.0030.07719.11
5.4.140.0070.07016.32
5.4.130.0070.06716.49
5.4.120.0130.06316.37
5.4.110.0100.04016.43
5.4.100.0070.07716.35
5.4.90.0100.04016.39
5.4.80.0070.06716.41
5.4.70.0000.05716.48
5.4.60.0130.03716.41
5.4.50.0030.06716.30
5.4.40.0000.08316.30
5.4.30.0100.07016.48
5.4.20.0030.08016.38
5.4.10.0070.06016.31
5.4.00.0100.05715.87
5.3.290.0070.07314.77
5.3.280.0170.06714.57
5.3.270.0100.08014.69
5.3.260.0030.07714.59
5.3.250.0070.07714.64
5.3.240.0070.05014.56
5.3.230.0030.08314.72
5.3.220.0100.07314.71
5.3.210.0170.06314.64
5.3.200.0100.06314.55
5.3.190.0170.06314.54
5.3.180.0070.07714.54
5.3.170.0130.07014.66
5.3.160.0100.04014.63
5.3.150.0070.07314.69
5.3.140.0030.07014.48
5.3.130.0070.08014.54
5.3.120.0030.06314.52
5.3.110.0030.08014.57
5.3.100.0000.08014.11
5.3.90.0070.06714.03
5.3.80.0070.07014.16
5.3.70.0030.04714.00
5.3.60.0070.07013.93
5.3.50.0030.07313.88
5.3.40.0130.06714.05
5.3.30.0030.04713.82
5.3.20.0030.07313.75
5.3.10.0000.07313.71
5.3.00.0100.07013.78
5.2.170.0070.06311.24
5.2.160.0000.06311.08
5.2.150.0030.06711.28
5.2.140.0030.06711.07
5.2.130.0070.05711.16
5.2.120.0070.05311.13
5.2.110.0070.06011.01
5.2.100.0030.03711.04
5.2.90.0030.06011.21
5.2.80.0030.06311.08
5.2.70.0070.06011.02
5.2.60.0070.05011.15
5.2.50.0070.06011.08
5.2.40.0070.06011.08
5.2.30.0000.06711.00
5.2.20.0070.06311.05
5.2.10.0000.06710.98
5.2.00.0070.06010.72
5.1.60.0030.05310.30
5.1.50.0070.05010.30
5.1.40.0000.05010.30
5.1.30.0030.06010.35
5.1.20.0100.05010.44
5.1.10.0070.03710.30
5.1.00.0070.05010.30
5.0.50.0030.04710.30
5.0.40.0030.03710.30
5.0.30.0070.04010.30
5.0.20.0030.04010.30
5.0.10.0000.04710.30
5.0.00.0030.05310.30
4.4.90.0000.02010.30
4.4.80.0070.03310.30
4.4.70.0000.03010.30
4.4.60.0000.03710.30
4.4.50.0000.03710.30
4.4.40.0000.05310.30
4.4.30.0000.02710.30
4.4.20.0030.03710.30
4.4.10.0070.03010.30
4.4.00.0000.05310.30
4.3.110.0070.02710.30
4.3.100.0000.03310.30
4.3.90.0100.02010.30
4.3.80.0030.05010.30
4.3.70.0100.01010.30
4.3.60.0000.03310.30
4.3.50.0000.03310.30
4.3.40.0030.03310.30
4.3.30.0030.02010.30
4.3.20.0000.03710.30
4.3.10.0000.03710.30
4.3.00.0030.03310.30

preferences:
57.91 ms | 401 KiB | 5 Q