For SLE 12 SP5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:php:php56/SLE_12_SP5/devel:languages:php:php56.repo
zypper refresh
zypper install php5
For SLE 12 SP4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:php:php56/SLE_12_SP4/devel:languages:php:php56.repo
zypper refresh
zypper install php5
For SLE 12 SP3 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:php:php56/SLE_12_SP3/devel:languages:php:php56.repo
zypper refresh
zypper install php5
For SLE 12 SP2 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:php:php56/SLE_12_SP2/devel:languages:php:php56.repo
zypper refresh
zypper install php5
For SLE 12 SP1 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:php:php56/SLE_12_SP1/devel:languages:php:php56.repo
zypper refresh
zypper install php5
For SLE 11 SP4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:php:php56/SLE_11_SP4/devel:languages:php:php56.repo
zypper refresh
zypper install php5
For SLE 11 SP3 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:php:php56/SLE_11_SP3/devel:languages:php:php56.repo
zypper refresh
zypper install php5