Source: medium.com

How to test PHP8 on MAC OS
If you want to test out the new feature of php8 on MAC OS, you can always build the PHP from the sources. But I propose a quicker and more secure(isolated) method that won’t change your system. We are gonna use the docker, so please install it. After that clone this repo to your machine, https://github.com/igorrebega/php8.0-docker

When you will see logs that look like this: Go to the localhost:8000, you should see this: Now you can edit the app/public/index.php file and test php8 features:
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners