Find out Easter Date without using easter_date() function
$y=date('Y');// default year
$date = new DateTime("$y-03-21"); // date format for 21st March of current year
$d= easter_days(); // Output is 31 , default year 2019
$date->add(new DateInterval("P".$d."D")); // Add number of days to easter to date format
echo $date->format('Y-M-d'); // Easter date of current year
Output is here
Easter date for year 2021 is 2021-Apr-04
We creaed date object for 21st of March of current year. The function easter_days() give number of days between 21st March and Easter day. Then used DateInterval to add number days to Easter to it.