I need to reproduce my programming production environment, so I need php version 5.4.16. The packages to this version doesn't exists at official repositories, but I can compile this version to OpenSUSE Tumbleweed, and through symbolic link to have php-7 and php-5, whether necessary. But I need to install php-openssl to version 5.4.16, which could be possible by compiling version extensions, but it requires php-devel, which requires a number of other things.
How to use this PHP version and all ecosystem in an updated distro?