The E_CORE_ERROR error level deals with core errors doing the initial startup of PHP.


Edited: 2021-04-18 16:52

An E_CORE_ERROR is a fetal error that will end execution of your script.

Core errors are caused by PHP's core, and will not by thrown by functions. Very few things seem to cause core errors.

E_CORE_ERROR is included in E_ALL., and will not be sent to a custom error handler. Instead it is handled in accordance with the error_reporting setting.

To show all errors:


Here is a few examples of potential core errors:

Tell us what you think:

  1. How to create a router in PHP to handle different request types, paths, and request parameters.
  2. How much faster is C++ than PHP to increment and display a counter in a loop?
  3. Detecting the request method used to fetch a web page with PHP, routing, HTTP responses, and more.
  4. How to create a custom error handler for PHP that handles non-fetal errors.
  5. Setting custom HTTP Headers with cURL is useful when changing User Agent or Cookies. Headers can be changed two ways, both using the curl_setopt function.

More in: PHP Tutorials