downgrade PHP from version 8.0.2 to 7.4 Windows 10 code example Example: brew downgrade php 8 to 7.4 $ brew unlink php@7.1 $ brew link php@7.4 --force --overwrite