For really simple ad hoc server working at any location you want, you can use PHP's built-in web server (available since PHP 5.4.0). Just run in the shell/cli in a directory where you have your .php files:
$ php -S localhost:8000
This will run PHP built-in server on your localhost and port 8000. If you want to learn more about available options you can use --help flag.
$ php --help
Please note that enabling directory listing requires additional effort.