version composer code example
Example 1: composer installed versions
composer show -i
Example 2: composer mac
php composer-setup.php --install-dir=bin --filename=composer
composer show -i
php composer-setup.php --install-dir=bin --filename=composer