You also can try using CentOS on Docker
https://hub.docker.com/_/centos since CentOS 7 comes with PHP 5.6 as Default.
Just tested it , yes as default comes with php 5.6, i dont think it will matter a lot if is 5.4 or 5.6 there aren't a lot of differences in scripting API's
__________________