Skip to main content
InterviewHubPRO
Section Overview
Q10

Question 10 of 50

Part 1: Core Language, Execution Lifecycle & Types (1 - 10)

20%
PHP & Zend Engine (50 Qs)•Part 1: Core Language, Execution Lifecycle & Types (1 - 10)

How does the Error and Throwable hierarchy work in modern PHP?

junior LevelLifecycle

In Simple Words: All exceptions and fatal errors implement the Throwable interface.

  • Exception: Base class for developer-handled application exceptions.
  • Error: Base class for internal engine fatal errors (e.g., TypeError, ParseError, DivisionByZeroError), allowing fatal engine issues to be caught in try/catch blocks.