final class Main { public function __construct() { $this->displayMem(); } private function displayMem() { $bytes = memory_get_usage(); $peak = memory_get_peak_usage(); $limit = memory_limit(); var_export($bytes > 0); var_export($peak > 0); var_export($peak >= $bytes); var_export($limit == 0 || $limit > $bytes); } } final class Program { public function main() { new Main(); } }