upgrade to latest php code example
Example: update to php 7.4
Add the ondrej/php PPA. Ubuntu: ...
Install PHP 7.4 and required extensions. To install PHP 7.4 core. ...
PHP 7.4 for web: ...
Uninstall old PHP versions: ...
Verify PHP 7.4 installation