how to run composer with specific php version code example
Example: install laravel specific version using composer
composer create-project --prefer-dist laravel/laravel blog "6.*"
composer create-project --prefer-dist laravel/laravel blog "6.*"