Built-in Development Server
No Apache config. No Nginx. No Docker. Just one command and you're running:
$ php -S localhost:8000
PHP Development Server started at http://localhost:8000
Document root is /var/www/myapp
Press Ctrl-C to quit.
# With a router script:
$ php -S localhost:8000 router.php
# Serve from a specific directory:
$ php -S localhost:8000 -t public/
The built-in server ships with every PHP installation since 5.4. It supports routing scripts, custom document roots, and outputs request logs to your terminal. For development, prototyping, and quick demos, it's unbeatable. Zero configuration, zero dependencies, instant feedback.
While not meant for production, it's perfectly adequate for local development — and it means any machine with PHP installed can serve a web application immediately.
Significance: Accessibility
The fastest path from idea to working prototype wins. PHP's built-in server means a beginner can go from installing PHP to seeing their first webpage in under a minute. No web server configuration, no infrastructure knowledge required. This is the power of batteries-included design.