composer-php version check

PHP
composer -vvv about
Source

Also in PHP: