how to get php version of composer code example
Example 1: check composer php version
composer -vvv about
Example 2: composer takes older version of php
composer install --ignore-platform-reqs
composer -vvv about
composer install --ignore-platform-reqs