This GitHub repository contains the source code for the MacPorts Project Official Homepage.
Install PHP 7.4 with MacPorts:
sudo port install php74
You can then start the local web server by running:
php74 -S localhost:8000
Open http://localhost:8000 in your web browser to see the website. Press Ctrl + C to stop the local web server.