I used it as a quick html server as an alternative to the Python “simple” ones, which always had some issues for me.
Useful when coding small demos:
php -S localhost:8000Useful when coding small demos:
php -S localhost:8000 python -m http.server 8000python3 -m http.server 8000
Both Python (v2 and v3) servers work more or less but they have an issue: the first page load takes about 30 seconds on my machine, usually. I never figured out why exactly and that’s why I started using the PHP server.