Brew can install multiple PHP version by command brew install php@version
. You can switch Valet to use PHP version by :
valet use php # switch to default PHP version (based on brew default PHP version)
valet use [email protected] # switch to PHP 7.4
valet use php@8 # switch to PHP 8