To change the php version of your site, follow these steps:
- Log in to your cPanel control panel
- In the Software section, select the MultiPHP Manager option
- Choose your domain as shown in the figure below, then select the appropriate version for you through the "PHP Version" menu, and finally click Apply.