composer using different version from command line code example Example: composer use different php version /usr/bin/php7.1 /usr/local/bin/composer update