You could subtract the memory_get_usage taken before eval() from the peak usage after eval, but I don't think it's useful to grab the non-peak after eval, since a lot of memory could have been freed up already.