.pharnot suitable for PH P Ar chive is a format that can read an executable file php, not an executable file. To run it, you should use:
$ php /usr/local/bin/composer.phar
To make your life a little easier, you can of course define an alias:
$ alias composer="php /usr/local/bin/composer.phar"
And then just call composerfrom your shell.