>>revski+X9
Since PHP is typically invoked as a web server module or SAPI, you can install as many versions as you want and which one you use comes down to the version you've configured in your web server.
You _can_ use PHP from the command line but it's not the same kind of thing as Python or other languages where you need to be mindful of which version some shell script might assume is installed, etc..