sizeof(int) = 68

Pankaj Kumar has a slightly disturbing look at memory usage in PHP.

Each element requires a value structure (zval) which takes 16 bytes.
Also requires a hash bucket - which takes 36 bytes. That gives 52 bytes
per value. Memory allocation headers take another 8 bytes*2 - which
gives 68 bytes. Pretty close to what you have.

This entry was posted on Wednesday, April 2nd, 2008 at 11:03 am and is filed under php, programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply