DEV Community

Discussion on: How to Install Multiple Versions of PHP on Ubuntu?

Collapse
 
vishalraj82 profile image
Vishal Raj

@magepsycho I would definitely use docker or vagarant. But another alternative to have multiple version of PHP can be to compile them locally and put them in seprate directories. Haven't tried that, but I hope the system does not runs into any kind of conflict.

Collapse
 
magepsycho profile image
Raj KB

No doubt Docker is the current de-facto for development. But if just your PHP version varies for your PHP projects then this approach is quite handy (feel right at home)