To change PHP version you must first access your cPanel.
Note: After changing the PHP version, the selected version will be used in all hosting and may affect projects already published.
1 - In the “Software” section, select the “Select PHP version” option;
2- Select the desired version, click on “Apply” and then click on “Save”;