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.