Yes, you can install and use multiple PHP versions simultaneously on your Mac. Follow the installation instructions mentioned earlier to install both PHP 7 and PHP 8 on your system.