Check whether OPcache is enabled

php -m | grep -i 'zend opcache'

# the CLI has its own switch, so force it on to read the status
php -d opcache.enable_cli=1 -r 'print_r(opcache_get_status(false));'