composer check current php version

PHP
composer -vvv about
Source

Also in PHP: