PHP allocates a certain amount of memory when executing your PHP scripts. Your PHP script will exit and a fatal error will be thrown if it has exhausted all the allocated memory.
PHP Fatal error: Allowed memory size of xxxx bytes exhausted (tried to allocate yyyy) in yourscript.php
This prevents PHP from consuming too much memory from the system, though you can configure PHP to increase the memory limit if your script or application requires more memory for execution.
Related: How to increase PHP memory limit
You can configure memory_limit option for PHP in cPanel hosting from the dashboard.
Comment anonymously. Login not required.