title: Getting size in memory of an object in PHP?
body: <p>There is a way to get the total memory PHP is using (<code>memory_get_usage()</code>) but how does one get the size in memory of an individual object?</p>
  
  <p>I'm obviously not talking about <code>count()</code> as I want the number of bytes in a potentially complex data structure.</p>