If you have to maintain an open source project written in PHP, like we do with Chamilo at BeezNest, you’ll have to test your software on multiple versions of PHP to make sure of how well your code is supported on these versions.
Of course, being open source, you can publish it on Github and then benefit from Travis-CI to get tests run automatically, but some stuff might be tricky to do, and maybe you’d like to test one specific thing, quickly, under a specific PHP version.
Well, it turns out you can probably do that with Docker. But before you start using it, this list might just be what you need… and it shows the relationship between each Ubuntu version and a PHP version, so you know which Ubuntu image to load to get the expected version of PHP.
|Ubuntu version||Ubuntu version name||PHP version|
If you have doubts, you can always find packages information from here: http://packages.ubuntu.com/ or the linked repository sites.