изменить версию PHP Ubuntu
$ sudo update-alternatives --config php
or
$ sudo a2enmod php7.1(version)
tsnl_incredible
$ sudo update-alternatives --config php
or
$ sudo a2enmod php7.1(version)
sudo update-alternatives --config php
sudo update-alternatives --config phar
sudo update-alternatives --config phar.phar
sudo update-alternatives --config php
On Mac using Home Brew, you can switch php versions easily:
brew unlink php@8.0
brew link php@7.1
Or follow the upgrade path to get your app to support the newer php version