This ignores the monstrous complexity of setting up PHP (and php-fpm) on a host machine. I prefer fully contained targeted binaries these days.
And if you really need php-fpm (which you should, anyway), at least in Ubuntu (never set up on other distro), the boilerplate nginx config is there.
Neither mod_php nor php-fpm is related to the built-in server though. Both are designed for production.
> Set the PHP_CLI_SERVER_WORKERS environment variable to the number of desired workers before starting the server
https://www.php.net/manual/en/features.commandline.webserver...