PHP 5.4 is nearing EOL and it’s the only package available for CentOS 6 without having to use additional repositories. We can upgrade php 5.6 using remi repo, you can use the following command to install remi repo and install php using the same repo.