Preferences > PHP
Select whether to use PHP 5.x or PHP 7.x. The available PHP versions depend on the version of MAMP you have installed.
Caching can speed up the execution of your PHP code. By default, caching is off. OPcache is only available with PHP 5.5.x, eAccelerator only with versions prior to 5.5.