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