All the shared hosting comes with “Multi-PHP selector”. It can be accessed and set via cpanel.
Once the PHP version is set, it will be used by the entire shared hosting account, and no worries, it will not affect other shared hosting accounts on the same server. Each cPanel hosting account can have its own PHP versions.
1) Login to cPanel
2) Click on “MulitPHP Manager”
3) Select the domain that you wish and select your desire PHP version on the top right
4) Click “Apply”