System requirements for Drupal 8

PHP

Drupal 8 works on any web server with a PHP (7.1 Recommended). PHP memory requirements can vary significantly depending on the modules in use on your site. Minimum required memory size is 64MB (Usually 128 MB - 256 MB)

php 7.1 is recommended for drupal 8

Database

Recommended: MySQL 5.5.3/MariaDB 5.5.20/Percona Server 5.5.8 or higher with InnoDB as the primary storage engine, and required the PDO database extension.
Other database servers: PostgreSQL 9.1.2 or higher. SQLite 3.6.8 or higher. Microsoft SQL Server and MongoDB are supported by additional modules.

Apache

Apache is the most commonly used web server for Drupal. Drupal will work on Apache 2.x hosted on UNIX/Linux, OS X, or Windows.

Nginx

Nginx is a commonly used web server that focuses on high concurrency, performance and low memory usage.