3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exception_error_handler($errno, $errstr, $errfile, $errline, $errcontext) { echo $err_context; /* 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.0060.01518.40
8.3.50.0120.00421.08
8.3.40.0120.00318.79
8.3.30.0140.00020.17
8.3.20.0100.00720.39
8.3.10.0150.00321.96
8.3.00.0140.00422.51
8.2.180.0150.00316.63
8.2.170.0070.00722.96
8.2.160.0030.01021.88
8.2.150.0060.00324.18
8.2.140.0160.00324.66
8.2.130.0110.00726.16
8.2.120.0070.01120.75
8.2.110.0040.00422.00
8.2.100.0090.00317.91
8.2.90.0060.00319.22
8.2.80.0020.00519.46
8.2.70.0040.00417.50
8.2.60.0080.00017.80
8.2.50.0050.00318.07
8.2.40.0030.00518.09
8.2.30.0080.00019.34
8.2.20.0080.00017.59
8.2.10.0030.00517.62
8.2.00.0100.00017.73
8.1.280.0150.00025.92
8.1.270.0040.00423.99
8.1.260.0180.00026.35
8.1.250.0120.00628.09
8.1.240.0000.01023.75
8.1.230.0050.01019.15
8.1.220.0000.00817.76
8.1.210.0030.00518.77
8.1.200.0000.00917.23
8.1.190.0090.00017.53
8.1.180.0030.00618.89
8.1.170.0000.01218.54
8.1.160.0030.00620.60
8.1.150.0040.00418.44
8.1.140.0030.00617.29
8.1.130.0000.00717.70
8.1.120.0040.00417.22
8.1.110.0020.00517.34
8.1.100.0040.00417.19
8.1.90.0000.00717.32
8.1.80.0040.00417.30
8.1.70.0030.00317.30
8.1.60.0040.00417.45
8.1.50.0070.00017.42
8.1.40.0000.00817.44
8.1.30.0040.00417.53
8.1.20.0050.00317.60
8.1.10.0070.00017.38
8.1.00.0000.00717.43
8.0.300.0040.00418.77
8.0.290.0040.00417.04
8.0.280.0000.00718.43
8.0.270.0040.00417.10
8.0.260.0030.00316.81
8.0.250.0030.00316.96
8.0.240.0040.00416.98
8.0.230.0000.00716.83
8.0.220.0030.00316.89
8.0.210.0000.00716.82
8.0.200.0030.00317.05
8.0.190.0000.00816.97
8.0.180.0070.00016.92
8.0.170.0040.00416.86
8.0.160.0000.00716.91
8.0.150.0030.00616.68
8.0.140.0000.00716.76
8.0.130.0060.00013.25
8.0.120.0000.00716.89
8.0.110.0050.00216.80
8.0.100.0000.00816.76
8.0.90.0030.00616.75
8.0.80.0030.01416.82
8.0.70.0040.00416.90
8.0.60.0000.00716.95
8.0.50.0000.00717.00
8.0.30.0060.01317.09
8.0.20.0110.00917.40
8.0.10.0080.00016.91
8.0.00.0120.00916.76
7.4.330.0000.00515.00
7.4.320.0000.00616.33
7.4.300.0000.00616.36
7.4.290.0030.00316.50
7.4.280.0000.00716.48
7.4.270.0030.00316.55
7.4.260.0000.00513.31
7.4.250.0040.00416.49
7.4.240.0050.00216.48
7.4.230.0030.00316.54
7.4.220.0110.00716.45
7.4.210.0090.00916.51
7.4.200.0030.00316.64
7.4.190.0070.00016.49
7.4.160.0110.00516.80
7.4.150.0060.01317.40
7.4.140.0110.00817.86
7.4.130.0090.00716.56
7.4.120.0130.00416.45
7.4.110.0030.01616.69
7.4.100.0060.01216.45
7.4.90.0040.01516.50
7.4.80.0100.01019.39
7.4.70.0100.00616.43
7.4.60.0100.00616.57
7.4.50.0060.00316.16
7.4.40.0060.00922.77
7.4.30.0120.00616.59
7.4.00.0080.00814.89
7.3.330.0030.00313.43
7.3.320.0030.00313.43
7.3.310.0000.00716.33
7.3.300.0070.00016.43
7.3.290.0090.00616.31
7.3.280.0090.00916.41
7.3.270.0030.01317.40
7.3.260.0090.00916.65
7.3.250.0100.00916.58
7.3.240.0090.00916.35
7.3.230.0070.01016.59
7.3.210.0090.00916.49
7.3.200.0090.00919.39
7.3.190.0100.01016.53
7.3.180.0160.00016.26
7.3.170.0100.00716.34
7.3.160.0110.00416.36
7.3.120.0020.01314.80
7.3.110.0100.00614.75
7.3.100.0070.01314.88
7.3.90.0030.01214.62
7.3.80.0060.00915.02
7.3.70.0110.00014.85
7.3.60.0110.00514.55
7.3.50.0060.00914.75
7.3.40.0080.00614.55
7.3.30.0070.00714.62
7.3.20.0030.00816.58
7.3.10.0060.00716.42
7.3.00.0100.00516.62
7.2.330.0130.00416.42
7.2.320.0110.01116.70
7.2.310.0100.00716.36
7.2.300.0040.01216.74
7.2.290.0030.01416.64
7.2.250.0080.01115.11
7.2.240.0070.01315.19
7.2.230.0090.00614.84
7.2.220.0030.01214.88
7.2.210.0030.01415.07
7.2.200.0110.00015.18
7.2.190.0000.01515.04
7.2.180.0060.00915.01
7.2.170.0060.00314.70
7.2.160.0060.00314.82
7.2.150.0130.00316.89
7.2.140.0030.00816.61
7.2.130.0080.00416.61
7.2.120.0120.00516.69
7.2.110.0100.00516.53
7.2.100.0120.00216.60
7.2.90.0120.01016.73
7.2.80.0100.00816.57
7.2.70.0080.01316.71
7.2.60.0080.00716.71
7.2.50.0130.00616.64
7.2.40.0110.01016.81
7.2.30.0080.00816.73
7.2.20.0070.01016.63
7.2.10.0060.01116.44
7.2.00.0070.01017.54
7.1.330.0070.01015.88
7.1.320.0060.00315.82
7.1.310.0080.00615.63
7.1.300.0030.00615.88
7.1.290.0030.00715.60
7.1.280.0030.01015.93
7.1.270.0100.00315.68
7.1.260.0030.01415.87
7.1.250.0060.01215.71
7.1.240.0050.00815.71
7.1.230.0060.00815.69
7.1.220.0060.00615.88
7.1.210.0110.00415.75
7.1.200.0110.00315.71
7.1.190.0090.00315.68
7.1.180.0060.00615.60
7.1.170.0130.00016.02
7.1.160.0000.01415.69
7.1.150.0000.01515.84
7.1.140.0040.00815.68
7.1.130.0030.00815.70
7.1.120.0040.00815.93
7.1.110.0030.01215.93
7.1.100.0100.00015.79
7.1.90.0050.00515.82
7.1.80.0070.01015.59
7.1.70.0020.01116.44
7.1.60.0080.00816.54
7.1.50.0120.00616.28
7.1.40.0060.00315.98
7.1.30.0100.00315.89
7.1.20.0030.01015.83
7.1.10.0070.00715.80
7.1.00.0050.02019.03
7.0.330.0040.00415.44
7.0.320.0000.01215.22
7.0.310.0030.01015.41
7.0.300.0090.00315.43
7.0.290.0060.00315.27
7.0.280.0000.01015.36
7.0.270.0130.00315.24
7.0.260.0000.01215.36
7.0.250.0020.01215.48
7.0.240.0030.01215.19
7.0.230.0000.01315.31
7.0.220.0070.01015.34
7.0.210.0130.00315.33
7.0.200.0020.00716.20
7.0.190.0050.00315.14
7.0.180.0060.00915.61
7.0.170.0070.00715.59
7.0.160.0080.00815.62
7.0.150.0030.00615.48
7.0.140.0050.04118.66
7.0.130.0080.00415.30
7.0.120.0040.00415.36
7.0.110.0090.00315.54
7.0.100.0050.04018.60
7.0.90.0040.02418.44
7.0.80.0020.02418.40
7.0.70.0000.02918.56
7.0.60.0020.02518.48
7.0.50.0040.02318.84
7.0.40.0030.02516.79
7.0.30.0060.02316.63
7.0.20.0020.02716.76
7.0.10.0020.04016.76
7.0.00.0050.02016.86
5.6.400.0040.01114.39
5.6.390.0030.00814.44
5.6.380.0000.01214.59
5.6.370.0070.01014.14
5.6.360.0070.00414.59
5.6.350.0040.01114.23
5.6.340.0000.00914.57
5.6.330.0080.00814.49
5.6.320.0050.00514.26
5.6.310.0030.01014.22
5.6.300.0080.00314.60
5.6.290.0090.00314.50
5.6.280.0080.04517.75
5.6.270.0000.00814.12
5.6.260.0040.00714.53
5.6.250.0040.02117.44
5.6.240.0050.02317.55
5.6.230.0040.03717.40
5.6.220.0030.02717.49
5.6.210.0010.02517.57
5.6.200.0040.02717.63
5.6.190.0020.03217.71
5.6.180.0010.02817.79
5.6.170.0050.02317.61
5.6.160.0080.02017.67
5.6.150.0050.03917.62
5.6.140.0030.04217.79
5.6.130.0020.04317.82
5.6.120.0050.03017.49
5.6.110.0050.02817.60
5.6.100.0070.02317.69
5.6.90.0050.02417.75
5.6.80.0030.02517.17
5.6.70.0090.03717.41
5.6.60.0020.02417.48
5.6.50.0050.04517.44
5.6.40.0000.03117.31
5.6.30.0070.02017.41
5.6.20.0030.04317.17
5.6.10.0030.03817.21
5.6.00.0050.02017.30
5.5.380.0060.01817.20
5.5.370.0060.01817.40
5.5.360.0030.02317.44
5.5.350.0030.03617.52
5.5.340.0030.03717.56
5.5.330.0040.02417.50
5.5.320.0060.04017.39
5.5.310.0000.02517.38
5.5.300.0050.02317.75
5.5.290.0070.02517.45
5.5.280.0040.03117.38
5.5.270.0020.02717.66
5.5.260.0070.02317.34
5.5.250.0050.03517.46
5.5.240.0020.02417.06
5.5.230.0040.03317.16
5.5.220.0060.03017.11
5.5.210.0030.03217.22
5.5.200.0050.04317.21
5.5.190.0020.03116.96
5.5.180.0000.04817.28
5.5.170.0000.01513.96
5.5.160.0050.02317.28
5.5.150.0040.03117.23
5.5.140.0020.02617.23
5.5.130.0030.02317.10
5.5.120.0080.03317.27
5.5.110.0040.02617.10
5.5.100.0000.02517.05
5.5.90.0060.02117.19
5.5.80.0100.03316.97
5.5.70.0050.02917.03
5.5.60.0030.02217.09
5.5.50.0050.02017.02
5.5.40.0030.02617.07
5.5.30.0030.02417.20
5.5.20.0020.03517.20
5.5.10.0050.02916.93
5.5.00.0000.02617.00
5.4.450.0070.04015.42
5.4.440.0010.02315.55
5.4.430.0020.02315.53
5.4.420.0060.01815.51
5.4.410.0010.02215.52
5.4.400.0010.02415.32
5.4.390.0040.01915.37
5.4.380.0030.03915.24
5.4.370.0060.01815.32
5.4.360.0040.03815.36
5.4.350.0030.02715.24
5.4.340.0070.01815.23
5.4.330.0070.00411.59
5.4.320.0050.02015.36
5.4.310.0030.02015.36
5.4.300.0050.02315.32
5.4.290.0020.02015.25
5.4.280.0030.02115.27
5.4.270.0000.02415.32
5.4.260.0010.02115.36
5.4.250.0000.03215.31
5.4.240.0030.03615.35
5.4.230.0000.03515.36
5.4.220.0040.02015.32
5.4.210.0060.03115.36
5.4.200.0050.02315.22
5.4.190.0030.02015.34
5.4.180.0040.02515.37
5.4.170.0030.02015.24
5.4.160.0020.04015.33
5.4.150.0040.02715.38
5.4.140.0020.02213.98
5.4.130.0020.03514.02
5.4.120.0020.01914.02
5.4.110.0020.02013.96
5.4.100.0050.01814.03
5.4.90.0020.02513.97
5.4.80.0020.02213.93
5.4.70.0050.01814.04
5.4.60.0030.03214.00
5.4.50.0020.02014.01
5.4.40.0030.02014.03
5.4.30.0040.01814.03
5.4.20.0000.02813.92
5.4.10.0050.02113.99
5.4.00.0000.02213.70
5.3.290.0030.03013.16
5.3.280.0020.02213.10
5.3.270.0020.02513.12
5.3.260.0020.03813.12
5.3.250.0000.02413.15
5.3.240.0040.01913.10
5.3.230.0010.02613.08
5.3.220.0030.02013.09
5.3.210.0050.02313.14
5.3.200.0000.02213.09
5.3.190.0000.03913.09
5.3.180.0030.02113.11
5.3.170.0030.04013.09
5.3.160.0030.03013.13
5.3.150.0030.02213.13
5.3.140.0020.02013.13
5.3.130.0030.02213.10
5.3.120.0040.02213.14
5.3.110.0030.04213.12
5.3.100.0020.02312.85
5.3.90.0020.03512.78
5.3.80.0000.02012.81
5.3.70.0020.04112.81
5.3.60.0070.03712.83
5.3.50.0060.01812.73
5.3.40.0030.04112.74
5.3.30.0050.02312.71
5.3.20.0050.01812.60
5.3.10.0040.02512.59
5.3.00.0000.01912.61
5.2.170.0000.05011.03
5.2.160.0030.04711.16
5.2.150.0030.06311.27
5.2.140.0000.04711.05
5.2.130.0030.03711.20
5.2.120.0030.04711.19
5.2.110.0000.03311.08
5.2.100.0030.04311.15
5.2.90.0030.06011.22
5.2.80.0030.05311.01
5.2.70.0000.03010.95
5.2.60.0030.02310.98
5.2.50.0000.04311.01
5.2.40.0000.04010.88
5.2.30.0030.03010.86
5.2.20.0000.05311.10
5.2.10.0000.02710.93
5.2.00.0000.02710.83
5.1.60.0030.05310.05
5.1.50.0030.02310.10
5.1.40.0030.04710.01
5.1.30.0000.03010.29
5.1.20.0030.02310.36
5.1.10.0030.05010.07
5.1.00.0000.05710.06
5.0.50.0000.0378.61
5.0.40.0000.0208.50
5.0.30.0000.0538.43
5.0.20.0000.0438.43
5.0.10.0030.0438.43
5.0.00.0000.0308.43
4.4.90.0000.0178.43
4.4.80.0000.0378.43
4.4.70.0030.0378.43
4.4.60.0000.0138.43
4.4.50.0030.0108.43
4.4.40.0000.0238.43
4.4.30.0000.0308.43
4.4.20.0030.0138.43
4.4.10.0000.0238.43
4.4.00.0000.0378.43
4.3.110.0000.0208.43
4.3.100.0030.0108.43
4.3.90.0000.0138.43
4.3.80.0000.0278.43
4.3.70.0000.0138.43
4.3.60.0000.0138.43
4.3.50.0000.0308.43
4.3.40.0000.0338.43
4.3.30.0000.0138.43
4.3.20.0000.0308.43
4.3.10.0000.0408.43
4.3.00.0000.0178.43

preferences:
40.13 ms | 401 KiB | 5 Q