Most hosting control panels have a "PHP version" switch, and WordPress Site Health keeps recommending a newer one. Yet switching is still a common cause of white screens and the "There has been a critical error on this website" message.
The key to understanding what breaks, and when, is the difference between two stages: deprecated and removed . For this article I ran the same few lines of code under several PHP versions (7.0 through 8.5) installed on the shared server that hosts this blog.
Features disappear in stages
When PHP decides to retire a function or syntax, it usually goes through three stages:
Works normally — no messages.
Deprecated — still works exactly the same, but emits a Deprecated notice every time it runs.
Removed — the function no longer exists. Calling it is an error, usually fatal.
Deprecations are typically removed in the next major version (7 → 8).…