PHP E_ERROR

E_ERROR (1) identifies a fatal runtime error. An uncaught throwable can also terminate a script. Some examples below fail during compilation or throw an Error in modern PHP.

A simple example

E_ERROR

  1. Start with Two declarations of the same class name
  2. Do this Load both declarations
  3. Result Fatal error
PHP cannot register both classes under one name, so execution stops.