Step 1: Log in to cPanel.
Step 2: In the Software section of cpanel there is one option for Select php version, click select php version.
Step 3:
After that there is one option current php version, select php version as per your requirements.
Step 4: click set as current.