php memory limit terminal code example Example 1: php memory_limit cli php -d memory_limit=-1 Example 2: get php memory limit command line php -i | grep "memory_limit"