Step 1: Log in to DirectAdmin.
Step 2: Go to Domain Setup.
Step 3: Click on the domain for which you want to change the PHP version.
Step 4: Under PHP Version Selector, choose the desired version.
Step 5: Click Save.
Done.
Your website will now load with the PHP version you selected.