The CentOS 7 official software repositories have PHP 5.4 which has reached the end of life and no longer actively maintained by the developers. …