If you are running xdebug, then you will have to enable PHP opcache. For this you will have to add this to your php.ini file.
opcache.memory_consumption=128 (for caching all compiled files)
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000 (by default can cache 2000 files)
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
The last command will enable Opcache, while the above commands are its default configuration.