Why php7 use more memory to store objects? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why php7 use more memory to store objects?

php scripts star to fail​ with a memory limit after update to php7

27th May 2017, 12:13 PM
Sergey Nikolaev
Sergey Nikolaev - avatar
1 Answer
+ 1
PHP5 allocating memory (By Request) assuming by it's Zend Engine structure. In PHP7 it's some optimizations made at this side, so on memory allocating (by the chunks) PHP7 saves memory very much on large programs.
9th Jun 2017, 11:40 AM
Amjad
Amjad - avatar