To enable opcache in XAMPP, launch your xampp control panel, stop the apache server and open php.ini file by clicking config and going to php.ini file.

Stop the apache server.. mine is on

Press control + f and type opcache to find the following line and uncomment it.

Last and but not the least, scroll down to the very end of php.ini file and add the following code.

Save php.ini file and start your apache server and visit php info page and make sure it says.. Zent Technologies with Zend OPcache ….