What is the memory limit of php 7?

1

I read somewhere (and now I'm not finding where) that in version 7 of php there is no memory lithmite. That is, the memory that can be allocated would be the RAM of the machine. Does it proceed? Has anyone read anything about it?

    
asked by anonymous 29.07.2016 / 18:45

1 answer

3

According to the manual:

  

memory_limit integer

     

Defines the maximum amount of memory in bytes   that a script is allowed to allocate. This helps prevent scripts from   write all the available memory on the server. Note that    To have no memory limit, set this directive to -1.

link

I've noticed that in previous versions, PHP limited memory to 4GB, so the most I could achieve was 4GB - 1MB:

ini_set('memory_limit', '4095M');
    
29.07.2016 / 19:14