3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); echo error_reporting(); die; function exception_error_handler($errno, $errstr, $errfile, $errline, $errcontext) { die; /* 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); //throw new RuntimeErrorException($errstr, $errno, 0, $errfile, $errline, $errcontext); return false; } set_error_handler("exception_error_handler"); $a[1]; /* throw new MyException('This is a really bad error', 123); final public ExceptionException::getPrevious ( void ) error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, '00007600', $errno, $errfile, $errline, new Exception('jjj')); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { var_dump($e->getPrevious()); }*/

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.0070.01318.43
8.3.50.0080.01221.27
8.3.40.0060.01218.43
8.3.30.0110.00420.32
8.3.20.0000.00820.09
8.3.10.0070.00022.10
8.3.00.0080.00022.24
8.2.180.0160.00716.50
8.2.170.0110.00422.96
8.2.160.0070.00722.26
8.2.150.0090.00624.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00020.68
8.2.110.0000.00922.02
8.2.100.0110.00017.82
8.2.90.0060.00318.97
8.2.80.0040.00419.26
8.2.70.0040.00417.63
8.2.60.0000.00917.93
8.2.50.0030.00618.07
8.2.40.0000.00818.22
8.2.30.0060.00319.43
8.2.20.0070.00017.75
8.2.10.0050.00217.61
8.2.00.0060.00317.49
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00023.83
8.1.230.0110.00019.21
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0060.00317.55
8.1.180.0050.00318.89
8.1.170.0040.00418.54
8.1.160.0050.00220.54
8.1.150.0000.00718.55
8.1.140.0070.00017.43
8.1.130.0030.00317.69
8.1.120.0000.00817.39
8.1.110.0000.00817.34
8.1.100.0040.00417.22
8.1.90.0030.00317.22
8.1.80.0040.00417.25
8.1.70.0000.00817.27
8.1.60.0060.00317.51
8.1.50.0000.00717.49
8.1.40.0040.00417.47
8.1.30.0050.00217.55
8.1.20.0040.00417.63
8.1.10.0000.00717.36
8.1.00.0050.00317.32
8.0.300.0000.00818.77
8.0.290.0040.00416.93
8.0.280.0000.00718.29
8.0.270.0000.00717.10
8.0.260.0030.00316.86
8.0.250.0050.00316.90
8.0.240.0040.00416.96
8.0.230.0040.00416.96
8.0.220.0040.00416.73
8.0.210.0000.00716.80
8.0.200.0000.00816.85
8.0.190.0000.00716.89
8.0.180.0040.00416.90
8.0.170.0050.00316.71
8.0.160.0030.00316.81
8.0.150.0030.00816.80
8.0.140.0040.00416.68
8.0.130.0000.00713.25
8.0.120.0040.00416.76
8.0.110.0050.00316.74
8.0.100.0000.00716.60
8.0.90.0070.00016.78
8.0.80.0060.00916.77
8.0.70.0030.00516.69
8.0.60.0040.00416.71
8.0.50.0030.00316.77
8.0.30.0120.01016.86
8.0.20.0110.00917.40
8.0.10.0040.00417.00
8.0.00.0100.01316.68
7.4.330.0000.00515.00
7.4.320.0050.00216.37
7.4.300.0000.00616.44
7.4.290.0030.00316.43
7.4.280.0070.00016.48
7.4.270.0000.00816.38
7.4.260.0030.00313.25
7.4.250.0000.00816.35
7.4.240.0030.00416.40
7.4.230.0000.00716.45
7.4.220.0080.01216.48
7.4.210.0080.00716.49
7.4.200.0030.00316.58
7.4.190.0050.00216.31
7.4.160.0170.00716.34
7.4.150.0070.01017.40
7.4.140.0070.01217.86
7.4.130.0110.00616.50
7.4.120.0070.01016.39
7.4.110.0120.00616.18
7.4.100.0110.00716.30
7.4.90.0070.01016.25
7.4.80.0090.00919.39
7.4.70.0100.00716.48
7.4.60.0100.00716.35
7.4.50.0070.00016.29
7.4.40.0070.00722.77
7.4.30.0060.01216.37
7.4.00.0030.01014.51
7.3.330.0060.00013.10
7.3.320.0000.00513.04
7.3.310.0000.00716.14
7.3.300.0030.00316.23
7.3.290.0100.00316.27
7.3.280.0100.00416.24
7.3.270.0130.00317.40
7.3.260.0140.00416.31
7.3.250.0090.00916.22
7.3.240.0130.00716.31
7.3.230.0130.00416.41
7.3.210.0030.01416.35
7.3.200.0060.01219.39
7.3.190.0180.00016.32
7.3.180.0060.00916.21
7.3.170.0030.01216.27
7.3.160.0120.00316.23
7.3.120.0030.00614.71
7.3.110.0040.01214.73
7.3.100.0080.00614.92
7.3.90.0060.00914.93
7.3.80.0060.00914.51
7.3.70.0000.00814.76
7.3.60.0000.01314.91
7.3.50.0060.00314.81
7.3.40.0000.01514.80
7.3.30.0080.00414.77
7.3.20.0070.00716.66
7.3.10.0060.00616.26
7.3.00.0090.00616.36
7.2.330.0060.01216.73
7.2.320.0170.00516.68
7.2.310.0090.00916.73
7.2.300.0130.00316.46
7.2.290.0040.01216.55
7.2.240.0000.01714.83
7.2.230.0110.00015.11
7.2.220.0050.00514.73
7.2.210.0000.01715.02
7.2.200.0000.01514.78
7.2.190.0030.00914.82
7.2.180.0040.01114.52
7.2.170.0070.01014.82
7.2.160.0070.01014.89
7.2.150.0170.00016.66
7.2.140.0070.00716.67
7.2.130.0070.01016.96
7.2.120.0100.00716.48
7.2.110.0040.01116.63
7.2.100.0060.01216.63
7.2.90.0030.01016.66
7.2.80.0090.00616.70
7.2.70.0070.01116.55
7.2.60.0030.01316.80
7.2.50.0070.01116.63
7.2.40.0070.00716.51
7.2.30.0030.01316.90
7.2.20.0060.00616.94
7.2.10.0030.01216.65
7.2.00.0070.00818.05
7.1.330.0070.00715.84
7.1.320.0040.01115.63
7.1.310.0060.01015.66
7.1.300.0000.01515.38
7.1.290.0030.00715.80
7.1.280.0000.01415.63
7.1.270.0100.00315.88
7.1.260.0080.00815.69
7.1.250.0080.00815.64
7.1.200.0060.00615.49
7.1.100.0100.00317.89
7.1.70.0040.00417.03
7.1.60.0030.00717.31
7.1.50.0070.00416.85
7.1.00.0000.03722.27
7.0.200.0070.00716.55
7.0.140.0030.07322.00
7.0.80.0000.06019.96
7.0.70.0070.05020.13
7.0.60.0070.05020.06
7.0.50.0100.08020.21
7.0.40.0130.05020.13
7.0.30.0130.07720.03
7.0.20.0130.08320.07
7.0.10.0070.08020.12
7.0.00.0070.08320.16
5.6.280.0030.07320.99
5.6.230.0030.09020.56
5.6.220.0070.08320.50
5.6.210.0170.04720.56
5.6.200.0070.06721.04
5.6.190.0070.09021.00
5.6.180.0070.07721.13
5.6.170.0070.07021.01
5.6.160.0030.05320.98
5.6.150.0100.04321.02
5.6.140.0070.05321.02
5.6.130.0130.08020.93
5.6.120.0100.06321.05
5.6.110.0030.06021.10
5.6.100.0070.04021.02
5.6.90.0130.08021.06
5.6.80.0000.09020.45
5.6.70.0070.04320.32
5.6.60.0030.08320.38
5.6.50.0130.07720.40
5.6.40.0230.06720.39
5.6.30.0000.08320.44
5.6.20.0070.03720.30
5.6.10.0100.07720.38
5.6.00.0030.08020.36
5.5.370.0130.06320.42
5.5.360.0130.07720.32
5.5.350.0100.07320.32
5.5.340.0100.07020.80
5.5.330.0130.08020.81
5.5.320.0100.06720.80
5.5.310.0170.07320.82
5.5.300.0200.06720.88
5.5.290.0130.08020.64
5.5.280.0100.07720.89
5.5.270.0030.05020.82
5.5.260.0070.06320.63
5.5.250.0100.08020.74
5.5.240.0100.08320.18
5.5.230.0070.07720.18
5.5.220.0100.05720.29
5.5.210.0170.06320.24
5.5.200.0100.06320.14
5.5.190.0070.08320.19
5.5.180.0100.07320.19
5.5.160.0070.07720.26
5.5.150.0030.08320.21
5.5.140.0170.07320.11
5.5.130.0100.08020.15
5.5.120.0100.06320.18
5.5.110.0200.06320.12
5.5.100.0030.07020.18
5.5.90.0070.08020.15
5.5.80.0030.08720.08
5.5.70.0070.08020.06
5.5.60.0100.05720.15
5.5.50.0130.03720.05
5.5.40.0070.07719.96
5.5.30.0100.07020.09
5.5.20.0130.05319.93
5.5.10.0000.08320.11
5.5.00.0100.07020.11
5.4.450.0000.06719.38
5.4.440.0100.06719.39
5.4.430.0130.06019.44
5.4.420.0000.09019.45
5.4.410.0070.05719.38
5.4.400.0100.06719.23
5.4.390.0230.06319.03
5.4.380.0130.07319.09
5.4.370.0170.03319.07
5.4.360.0100.06719.03
5.4.350.0000.08318.88
5.4.340.0070.05019.05
5.4.320.0130.07718.88
5.4.310.0030.08019.13
5.4.300.0100.05019.13
5.4.290.0070.07018.88
5.4.280.0000.08718.89
5.4.270.0100.04718.90
5.4.260.0000.07019.03
5.4.250.0170.07019.08
5.4.240.0100.07319.18
5.4.230.0130.07018.94
5.4.220.0130.07019.04
5.4.210.0070.07719.20
5.4.200.0130.05019.12
5.4.190.0030.07019.11
5.4.180.0030.07018.84
5.4.170.0030.08018.89
5.4.160.0000.07719.07
5.4.150.0100.06718.86
5.4.140.0030.07316.40
5.4.130.0070.08716.40
5.4.120.0070.05316.40
5.4.110.0130.06716.29
5.4.100.0000.04016.45
5.4.90.0070.06316.53
5.4.80.0070.05016.38
5.4.70.0130.06716.41
5.4.60.0100.07016.47
5.4.50.0100.03016.46
5.4.40.0130.04016.34
5.4.30.0070.05016.41
5.4.20.0030.07016.42
5.4.10.0100.07716.48
5.4.00.0070.05315.86
5.3.290.0030.06314.60
5.3.280.0030.08014.61
5.3.270.0030.06014.65
5.3.260.0070.07714.52
5.3.250.0070.04714.63
5.3.240.0130.04714.68
5.3.230.0070.06014.59
5.3.220.0070.06314.50
5.3.210.0130.07014.59
5.3.200.0070.04014.61
5.3.190.0070.06014.66
5.3.180.0070.03714.63
5.3.170.0070.06014.65
5.3.160.0070.06014.70
5.3.150.0070.04014.49
5.3.140.0070.07714.53
5.3.130.0070.08014.61
5.3.120.0100.06714.64
5.3.110.0000.08014.53
5.3.100.0030.04014.17
5.3.90.0130.06714.05
5.3.80.0030.08014.02
5.3.70.0070.07713.95
5.3.60.0100.07314.09
5.3.50.0070.07013.83
5.3.40.0030.07714.05
5.3.30.0030.07013.80
5.3.20.0030.07313.70
5.3.10.0070.07013.68
5.3.00.0130.06713.77
5.2.170.0070.06311.81
5.2.160.0070.03011.81
5.2.150.0070.05311.81
5.2.140.0100.03011.81
5.2.130.0030.03711.81
5.2.120.0070.05711.81
5.2.110.0100.06011.81
5.2.100.0070.04311.81
5.2.90.0100.05711.81
5.2.80.0030.06011.81
5.2.70.0070.06311.81
5.2.60.0070.05711.81
5.2.50.0030.04711.81
5.2.40.0030.06011.81
5.2.30.0030.04011.81
5.2.20.0100.05711.81
5.2.10.0100.05711.81
5.2.00.0070.05711.81
5.1.60.0030.04311.81
5.1.50.0030.05311.81
5.1.40.0070.05011.81
5.1.30.0030.05711.81
5.1.20.0070.03711.81
5.1.10.0030.04711.81
5.1.00.0070.04711.81
5.0.50.0070.04311.81
5.0.40.0000.04311.81
5.0.30.0000.05011.81
5.0.20.0070.03711.81
5.0.10.0000.04311.81
5.0.00.0000.07011.81
4.4.90.0000.03711.81
4.4.80.0000.03711.81
4.4.70.0070.03311.81
4.4.60.0030.03011.81
4.4.50.0000.02711.81
4.4.40.0000.05311.81
4.4.30.0030.02311.81
4.4.20.0030.03711.81
4.4.10.0030.03711.81
4.4.00.0000.05711.81
4.3.110.0070.03011.81
4.3.100.0000.02311.81
4.3.90.0070.01711.81
4.3.80.0070.05011.81
4.3.70.0030.02311.81
4.3.60.0000.03311.81
4.3.50.0030.03711.81
4.3.40.0070.04711.81
4.3.30.0030.03311.81
4.3.20.0000.03711.81
4.3.10.0030.02311.81
4.3.00.0030.03011.81

preferences:
60.32 ms | 400 KiB | 5 Q