Is it possible to install php8.1 on macOS 10.15?

Need PHP8.1 for Laravel 10.

[Host Machine Environments]

Mac iMac 2012 late
macOS 10.15
php 7.3
homebrew 4.0.28
Docker 4.5
Laravel 10
Laravel sail → PHP 8.1

If possible, it would be helpful if you could give me the procedure.

thanks