all(); if ($type == 3) return $arr; $current_time = time(); return array_filter($arr, function ($value) use ($current_time, $type) { if ($type == 1) { return ($current_time - intval($value)) <= self::RUN_OVERTIME; } else { return ($current_time - intval($value)) > self::RUN_OVERTIME; } }); } }