Three ways to run PHP locally

#1: Run PHP Built in server

#2: Docker

#3: XAMPP

The Pros and Cons

#1: Built in server – possibly the easiest way but it does limit a developer to small project. It is a quick way to test your output, though.

#2: XAMPP – It is free and open source so fairly intuitive to install. With no password for admins, this seems to pose a security risk.

#3: Docker – high level of security but it does not play well with Linux so may cause issues for the developer.