thanks for your response...
just out of curiosity, does PHP automatically allocate the minimum number of bytes for an integer?
also, a thought occurred to me after I posted. given an object, i could always do something like this:
$approx_size = strlen(serialize($my_object));
i think that might do it without too much overhead.