$start_time = microtime(true);
$start_memory = memory_get_usage();
// 計測したい処理を記述
dd("time: ".microtime(true) - $start_time, "memory: ".(memory_get_peak_usage() - $start_memory) / (1024 * 1024));
半分の力で頑張ります
$start_time = microtime(true);
$start_memory = memory_get_usage();
// 計測したい処理を記述
dd("time: ".microtime(true) - $start_time, "memory: ".(memory_get_peak_usage() - $start_memory) / (1024 * 1024));