How to Upgrade PHP Version
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language
Before upgrading your php version you should make sure that your blogs wordpress version is up to date and all your themes and plugins are also updated to their latest version so that you wont face any problems or downtime. After making sure that all the things in your wordpress blog are up to date then follow the below steps to update php.
First of all Login to your hosting account.
After Logging in now navigate to your cpanel in account.
Now go to the category Software/Services
Now click on Php Config.
Now you will see a list of php version just choose the latest stable version and click on save changes.
After saving changes now move to your site and see that everything is working fine if you find something mishappening with your site then follow the steps mention above from step 1 to 4 in 5th step choose your old version again and then try finding out what is incompatiable with the newer php and if they are not much important then try removing them or find an alternative.