You can use the alias command in your terminal to create a new command that runs a different version of PHP.