I have 2 different PHP versions installed. When I try to run a task it runs with the default version of PHP. How can I change the version of PHP.
You need to specify the interpreter on command line:
$ /path/to/correct/php symfony the-task