Memory limit is the maximum amount of memory that a single run of a PHP script may use. It protects the server from running out of memory because of one demanding application. When it is exceeded, the script is terminated with an error.
The default setting is 512 MB. For details see PHP memory limit.