CentOS / RHEL
PHP 7 can be installed using the Webstatic Yum repository:
If you’re using CentOS/RHEL 7.x, run these three commands to add the repository and install PHP 7:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w
If you’re using CentOS/RHEL 6.x, run these two commands to add the repository and install PHP 7:
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum install php70w
The full list of available packages (including SAPIs and extensions) can be found here: https://webtatic.com/packages/php70/#sapi