Fetch PHP memory limit

WordPress’ memory limit can be independently set to anything however will not go over PHP’s own limit. This will retrieve PHP’s memory limit.

cat /etc/php/$(php -v | head -n1 | cut -d ' ' -f 2 | cut -d '.' -f 1,2)/fpm/php.ini | grep "memory_limit"