php -v
gives 7.4
which php
gives 7.4
php test.php with the following test file:
<?php
echo phpversion();
?>
gives 7.4
But when I run the install/bootup script for Craft CMS, it's executing the file Bootup.php with PHP 5.6.
Under what circumstances will presumably a bash script default to an old php version? I suspect this could be an environment variable in Composer. And how do I get it to run using the desired one?
Apologies if I'm asking the xy question.