Install Webserver; apache, nginx, …
Install php
Install database; mariadb, mysql, postgreSQL, …
Install Extensions on VS Code; PHP Extension Pack (Xdebug), {PHP Debug (Xdebug), PHP Intelephense (Ben Mewburn) }
settings.json on VS Code for php execution.