This guide describes how to change PHP version on shared servers by modifying the .htaccess file.
To switch to PHP 5.4 add the following line:
AddHandler application/x-httpd-php54 .php
To switch to PHP 5.6 add the following line:
AddHandler application/x-httpd-php56 .php
To switch to PHP 7.0 add the following line:
AddHandler application/x-httpd-php7 .php
To switch to PHP 7.1 add the following line:
AddHandler application/x-httpd-php71 .php
In case this article leaves any of your questions or concerns unanswered, please, feel welcome to email us or post a public question.
More than (just) Themes
http://www.morethanthemes.com/
References
1. https://stackoverflow.com/questions/12561203/how-to-change-php-version-in-htaccess-in-server