MAMP Pro with PHP 7 OPcode caching
Just make sure that the OPCache is selected as caching mechanism in MAMP preferences.


Click on "Preferences".
Click on the "PHP" tab.
Select "OPcache" under "Cache" field.