MAMP is a free, local server environment that can be installed under macOS and Windows with just a few clicks. MAMP provides all the tools you need to run a local web server with php (Remember LAMP?)
You can even run WordPress locally for testing or development purposes. With the help of local DNS server NAMO, you can even easily test your projects on mobile devices. It doesn’t matter if you prefer Apache or Nginx or if you want to work with PHP, Python, Perl or Ruby.