# Deprecated Features

> Section in “Backward Incompatible Changes” 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/deprecated-features/>

This chapter lists features that still work in PHP 7, but will be removed in future versions, most likely PHP 8.

Most deprecated features listed in this chapter will be removed in PHP 8. When migration to PHP 7, you do not have to address those deprecation warnings immediately, but you will have to deal with all of them before you can upgrade to PHP 8. Make it a habit to regularly look into some deprecation warnings that your application creates, and address them. Ideally, your code should not issue any deprecation warnings (well, no warnings in general), then you should be more or less in a good position to start upgrading to PHP 8, or whatever the newest available PHP version when you read these lines.

## In this section

- [Strings](https://php7explained.com/backward-incompatible-changes/deprecated-features/strings/index.html.md): Deprecated string features: parse_str() without result argument, non-string needles in search functions, curly brace offsets, hebrevc() and fgetss().
- [Arrays](https://php7explained.com/backward-incompatible-changes/deprecated-features/arrays/index.html.md): Deprecated array features: each() as of PHP 7.2, curly brace syntax for element access, array_key_exists() on objects in PHP 7.4, implode() argument order.
- [Graphics](https://php7explained.com/backward-incompatible-changes/deprecated-features/graphics/index.html.md): Deprecated gd functions: png2wbmp() and jpeg2wbmp() as of PHP 7.2 and image2wbmp() as of PHP 7.3, with imagewbmp() as the replacement for WBMP output.
- [Internationalisation and Unicode](https://php7explained.com/backward-incompatible-changes/deprecated-features/internationalisation-and-unicode/index.html.md): Deprecated: mbstring.func_overload in PHP 7.2, passing the encoding as third argument to mb_strrpos(), money_format() and Normalizer::NONE in PHP 7.4.
- [Language Features](https://php7explained.com/backward-incompatible-changes/deprecated-features/language-features/index.html.md): Deprecated language features: __autoload(), create_function(), assert() with a string and track_errors as of PHP 7.2, PHP 4-style constructors, is_real().
- [Security](https://php7explained.com/backward-incompatible-changes/deprecated-features/security/index.html.md): Deprecated security feature: passing an explicit salt option to password_hash() with the bcrypt algorithm now triggers a deprecation message.
- [Extensions](https://php7explained.com/backward-incompatible-changes/deprecated-features/extensions/index.html.md): Deprecated in the ldap extension as of PHP 7.4: the pagination functions ldap_control_paged_result() and ldap_control_paged_result_response().
- [More Facepalms](https://php7explained.com/backward-incompatible-changes/deprecated-features/more-facepalms/index.html.md): Deprecated oddities: the (unset) cast, ezmlm_hash(), unparenthesized nested ternary operators, case-insensitive constants and pointless URL filter flags.

---

Previous: [Facepalms and WTF Moments](https://php7explained.com/backward-incompatible-changes/changed-semantics/facepalms-and-wtf-moments/index.html.md) | Next: [Strings](https://php7explained.com/backward-incompatible-changes/deprecated-features/strings/index.html.md)
