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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners