79526580

Date: 2025-03-21 21:12:09
Score: 0.5
Natty:
Report link
    public function getAge(string $birthday): int
    {
        return (new \DateTime('now'))->diff(new \DateTime($birthday))->y;
    }

    echo getAge('1982-08-22');

Enjoy

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Gigoland