run php command with memory limit code example Example: get php memory limit command line php -i | grep "memory_limit"