# Backward Incompatible Changes

> Chapter of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/backward-incompatible-changes/>

As we have already learned, PHP 7 is way more than just a few new features that have been added to the language. The main long-term benefit will be the changes that have been made under the hood. They will allow us to take PHP into the future for a long time to come, while still improving it further.

Well, everything comes at a price. The extensive changes behind the scenes have required some backwards-incompatible changes. Fortunately, we are mostly talking about edge cases, and many projects will not even be affected. The more you have invested into writing clean and readable code, the less you will be affected by any of the following issues.

## In this section

- [Removed Features](https://php7explained.com/backward-incompatible-changes/removed-features/index.html.md): Why features get removed from PHP and what is gone in PHP 7, from server APIs and magic quotes to gd font functions, with a workaround for each.
- [Changed Semantics](https://php7explained.com/backward-incompatible-changes/changed-semantics/index.html.md): Behavior changes in PHP 7 that can break existing code, covering strings, XML, arrays, mathematics, sessions, I/O, graphics, security and the language.
- [Deprecated Features](https://php7explained.com/backward-incompatible-changes/deprecated-features/index.html.md): Features that still work in PHP 7 but are deprecated and will most likely be removed in PHP 8, in strings, arrays, graphics, Unicode and security.

---

Previous: [A Note on PEAR](https://php7explained.com/introduction/getting-php-7/a-note-on-pear/index.html.md) | Next: [Removed Features](https://php7explained.com/backward-incompatible-changes/removed-features/index.html.md)
