I have a client with a website that requires PHP 7.4 to run some custom code. In order to test fixes, I need create a local VM that can run 7.4, but this version is no longer available for installation—as far as I’ve been able to determine. My hope is to be able to find an image with 7.4 pre-installed that I can run under either VirtualBox or VMWare Fusion. Does anyone have a suggestion?
You can use the php PPA maintained by ondrej. It only supports LTS versions of Ubuntu. To install php7.4, open a terminal and run the commands