You can change the version, settings and extensions of PHP used in your hosting account by following the steps below:
1. Log in to your cPanel account.
2. In the SOFTWARE section click on Select PHP version, as shown in the following screenshot:
3. Choose the PHP version you want from the drop-down menu and click on "Set as current". To enable or disable a PHP extension, check or uncheck its checkbox.
4. To modify PHP settings click on the menu Options.
The new setting is saved automatically.