3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_USER_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.70.0190.00316.75
8.3.60.0080.01218.41
8.3.50.0120.00721.27
8.3.40.0040.01118.61
8.3.30.0170.00320.09
8.3.20.0000.00720.35
8.3.10.0040.00421.95
8.3.00.0110.00422.26
8.2.180.0120.00318.56
8.2.170.0130.00722.96
8.2.160.0060.00922.27
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00820.80
8.2.110.0060.00322.15
8.2.100.0090.00317.84
8.2.90.0040.00419.09
8.2.80.0040.00419.32
8.2.70.0000.00917.63
8.2.60.0000.00917.92
8.2.50.0000.00818.07
8.2.40.0050.00318.03
8.2.30.0000.00819.47
8.2.20.0030.00617.66
8.2.10.0000.00717.74
8.2.00.0060.00317.73
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00524.00
8.1.230.0080.00419.03
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00817.48
8.1.190.0030.00517.52
8.1.180.0000.00819.01
8.1.170.0080.00018.51
8.1.160.0000.00718.86
8.1.150.0000.00718.56
8.1.140.0000.00717.29
8.1.130.0070.00017.67
8.1.120.0000.00717.26
8.1.110.0000.00717.30
8.1.100.0000.00717.35
8.1.90.0000.00817.32
8.1.80.0070.00017.32
8.1.70.0000.00817.26
8.1.60.0030.00617.49
8.1.50.0040.00417.41
8.1.40.0050.00317.46
8.1.30.0000.00717.60
8.1.20.0030.00617.49
8.1.10.0000.00717.42
8.1.00.0060.00317.33
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0030.00518.27
8.0.270.0030.00317.20
8.0.260.0030.00316.85
8.0.250.0030.00316.93
8.0.240.0040.00416.96
8.0.230.0070.00016.82
8.0.220.0030.00416.78
8.0.210.0050.00216.89
8.0.200.0080.00016.95
8.0.190.0030.00616.94
8.0.180.0040.00416.77
8.0.170.0000.00816.96
8.0.160.0000.00716.87
8.0.150.0030.00616.88
8.0.140.0070.00016.96
8.0.130.0000.00513.37
8.0.120.0040.00416.90
8.0.110.0040.00416.95
8.0.100.0040.00416.89
8.0.90.0040.00416.75
8.0.80.0040.01116.93
8.0.70.0080.00016.81
8.0.60.0000.00817.01
8.0.50.0040.00416.90
8.0.30.0080.01017.21
8.0.20.0150.00517.40
8.0.10.0040.00417.09
8.0.00.0140.00816.72
7.4.330.0050.00015.00
7.4.320.0000.00616.33
7.4.300.0060.00016.41
7.4.290.0030.00316.53
7.4.280.0040.00416.53
7.4.270.0030.00316.45
7.4.260.0060.00013.19
7.4.250.0030.00316.37
7.4.240.0030.00316.39
7.4.230.0070.00016.33
7.4.220.0100.01116.33
7.4.210.0060.00916.48
7.4.200.0040.00416.59
7.4.190.0000.00716.67
7.4.160.0030.01316.41
7.4.150.0160.00317.40
7.4.140.0110.00717.86
7.4.130.0080.00916.45
7.4.120.0100.00716.44
7.4.110.0150.00916.33
7.4.100.0090.00916.46
7.4.90.0140.00316.57
7.4.80.0120.00619.39
7.4.70.0110.00716.34
7.4.60.0030.01416.54
7.4.50.0000.00816.36
7.4.40.0130.00022.77
7.4.30.0120.00416.57
7.4.00.0040.01114.97
7.3.330.0020.00213.12
7.3.320.0050.00013.22
7.3.310.0040.00416.39
7.3.300.0060.00016.34
7.3.290.0060.00916.27
7.3.280.0070.00816.32
7.3.270.0110.00617.40
7.3.260.0070.01416.43
7.3.250.0100.01016.55
7.3.240.0130.00716.31
7.3.230.0120.00616.39
7.3.210.0030.01316.38
7.3.200.0060.01419.39
7.3.190.0120.00916.32
7.3.180.0110.00416.43
7.3.170.0100.00616.43
7.3.160.0130.00316.51
7.3.120.0100.00614.70
7.2.330.0100.00616.46
7.2.320.0160.00816.34
7.2.310.0030.01316.59
7.2.300.0070.01116.62
7.2.290.0120.00416.36
7.2.00.0030.01619.45
7.1.100.0070.00718.15
7.1.70.0050.00216.77
7.1.60.0060.00619.32
7.1.50.0140.01116.80
7.1.00.0030.07722.28
7.0.200.0000.00716.76
7.0.140.0070.06321.93
7.0.100.0130.07319.88
7.0.90.0100.07319.87
7.0.80.0270.03719.86
7.0.70.0230.07719.92
7.0.60.0200.07719.97
7.0.50.0070.05720.28
7.0.40.0070.04720.07
7.0.30.0230.05020.19
7.0.20.0070.04020.13
7.0.10.0030.04320.14
7.0.00.0030.05719.95
5.6.280.0030.07321.13
5.6.250.0070.06720.57
5.6.240.0070.05020.64
5.6.230.0070.07020.51
5.6.220.0130.07720.62
5.6.210.0130.07720.61
5.6.200.0130.07021.09
5.6.190.0070.04321.09
5.6.180.0070.06020.94
5.6.170.0070.08021.04
5.6.160.0000.08020.96
5.6.150.0070.08021.00
5.6.140.0000.05721.08
5.6.130.0130.07321.00
5.6.120.0130.08021.04
5.6.110.0070.07720.94
5.6.100.0100.07721.17
5.6.90.0000.09021.13
5.6.80.0170.02720.36
5.6.70.0030.06720.51
5.6.60.0070.03320.46
5.6.50.0030.08020.33
5.6.40.0030.06020.43
5.6.30.0000.07020.48
5.6.20.0100.03720.42
5.6.10.0030.04320.38
5.6.00.0100.07720.42
5.5.380.0070.08020.52
5.5.370.0030.08020.52
5.5.360.0030.08320.41
5.5.350.0130.03720.41
5.5.340.0100.07720.89
5.5.330.0070.07720.93
5.5.320.0000.09020.78
5.5.310.0030.04320.64
5.5.300.0070.08020.83
5.5.290.0030.04320.64
5.5.280.0100.07320.73
5.5.270.0070.08020.85
5.5.260.0200.06720.91
5.5.250.0070.06320.63
5.5.240.0070.06320.27
5.5.230.0170.06720.29
5.5.220.0100.03020.19
5.5.210.0070.06720.28
5.5.200.0100.07320.00
5.5.190.0030.08020.11
5.5.180.0030.05320.09
5.5.160.0100.07020.16
5.5.150.0070.07720.27
5.5.140.0000.07320.23
5.5.130.0030.04020.13
5.5.120.0100.05720.23
5.5.110.0000.04320.16
5.5.100.0100.08020.11
5.5.90.0030.05019.95
5.5.80.0000.07020.13
5.5.70.0070.03720.00
5.5.60.0100.03320.16
5.5.50.0030.04720.04
5.5.40.0130.02720.00
5.5.30.0030.04020.06
5.5.20.0030.08020.14
5.5.10.0030.04020.13
5.5.00.0070.08020.12
5.4.450.0170.06319.46
5.4.440.0070.05719.20
5.4.430.0070.08019.48
5.4.420.0070.05719.37
5.4.410.0070.07019.26
5.4.400.0100.06719.19
5.4.390.0070.05719.05
5.4.380.0070.08019.18
5.4.370.0030.05719.13
5.4.360.0030.05018.86
5.4.350.0030.04018.90
5.4.340.0030.04019.13
5.4.320.0030.03719.05
5.4.310.0000.08718.90
5.4.300.0030.04019.03
5.4.290.0030.03719.13
5.4.280.0070.03719.21
5.4.270.0070.06019.16
5.4.260.0100.07019.04
5.4.250.0030.05719.04
5.4.240.0000.04019.08
5.4.230.0100.07019.21
5.4.220.0100.03318.90
5.4.210.0130.06718.84
5.4.200.0000.04019.09
5.4.190.0030.06319.16
5.4.180.0100.04719.02
5.4.170.0030.04319.03
5.4.160.0100.07719.16
5.4.150.0070.03319.16
5.4.140.0030.07016.32
5.4.130.0100.05316.45
5.4.120.0030.04316.47
5.4.110.0030.07316.41
5.4.100.0030.03716.27
5.4.90.0070.06016.47
5.4.80.0000.04316.27
5.4.70.0070.06316.42
5.4.60.0070.07316.37
5.4.50.0000.03716.41
5.4.40.0030.06716.36
5.4.30.0070.07016.44
5.4.20.0000.07716.40
5.4.10.0070.07016.36
5.4.00.0030.03715.86
5.3.290.0030.03714.68
5.3.280.0030.07714.63
5.3.270.0000.04314.59
5.3.260.0100.06014.59
5.3.250.0130.06714.69
5.3.240.0100.03014.66
5.3.230.0030.07014.58
5.3.220.0100.07014.66
5.3.210.0030.07714.61
5.3.200.0030.06714.62
5.3.190.0030.03714.57
5.3.180.0100.07314.57
5.3.170.0170.06714.55
5.3.160.0070.03314.49
5.3.150.0170.05714.58
5.3.140.0030.04014.67
5.3.130.0000.06014.52
5.3.120.0070.07714.65
5.3.110.0070.07314.50
5.3.100.0030.03713.97
5.3.90.0070.05014.00
5.3.80.0030.03313.95
5.3.70.0130.06314.08
5.3.60.0100.06714.13
5.3.50.0030.07013.84
5.3.40.0070.03314.10
5.3.30.0030.07313.82
5.3.20.0070.06713.71
5.3.10.0100.06713.69
5.3.00.0000.04013.70
5.2.170.0070.05011.27
5.2.160.0100.04011.05
5.2.150.0100.05711.07
5.2.140.0100.06011.14
5.2.130.0030.06311.02
5.2.120.0100.04711.16
5.2.110.0030.06010.98
5.2.100.0030.02711.11
5.2.90.0030.02711.24
5.2.80.0000.03311.16
5.2.70.0000.05311.05
5.2.60.0100.05311.12
5.2.50.0030.05311.16
5.2.40.0100.05311.02
5.2.30.0030.06011.08
5.2.20.0030.04011.02
5.2.10.0070.05010.93
5.2.00.0070.05310.78
5.1.60.0100.0409.99
5.1.50.0000.0639.86
5.1.40.0000.04710.08
5.1.30.0070.05310.27
5.1.20.0070.05310.33
5.1.10.0100.04010.18
5.1.00.0100.05010.17
5.0.50.0000.0479.01
5.0.40.0070.0439.01
5.0.30.0000.0679.01
5.0.20.0030.0179.01
5.0.10.0030.0309.01
5.0.00.0030.0639.01
4.4.90.0000.0179.01
4.4.80.0100.0339.01
4.4.70.0030.0339.01
4.4.60.0030.0279.01
4.4.50.0100.0179.01
4.4.40.0030.0239.01
4.4.30.0070.0239.01
4.4.20.0000.0209.01
4.4.10.0030.0339.01
4.4.00.0030.0509.01
4.3.110.0030.0239.01
4.3.100.0000.0339.01
4.3.90.0000.0279.01
4.3.80.0000.0239.01
4.3.70.0070.0309.01
4.3.60.0070.0309.01
4.3.50.0000.0179.01
4.3.40.0030.0209.01
4.3.30.0000.0379.01
4.3.20.0030.0339.01
4.3.10.0030.0339.01
4.3.00.0000.0279.01

preferences:
70.76 ms | 401 KiB | 5 Q