I love rvm (ruby version manager), it allows to switch quickly between Ruby versions on the command line, like this:
$ rvm use 1.9.3
Is there a similiar tool for PHP? (Preferably on the command line.) I'm currently developing a PHP framework, so I quickly need to test the code on different PHP version.
I'm using Ubuntu 11.10.
You can simply install different versions on PHP, each in a different directory, then use the one you want. You can even make a simple script to automate this (it would run the PHP executable from the directory corresponding to an argument, and/or it could change the Apache configuration to use the specified version and reload Apache).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With