Running Multiple PHP Versions on a Single EC2 Instance

How we manage different PHP versions from 5.6 to 8.4 on a single server using Docker and volume mapping