3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php putenv('TZ=UTC'); echo date("Y-m-d", easter_date(2000))."\n"; echo date("Y-m-d", easter_date(2001))."\n"; echo date("Y-m-d", easter_date(2002))."\n"; echo date("Y-m-d", easter_date(1492))."\n"; ?>
Output for 4.3.2 - 7.1.0
2000-04-23 2001-04-15 2002-03-31 Warning: easter_date(): This function is only valid for years between 1970 and 2037 inclusive in /in/DKD55 on line 6 1970-01-01
Output for 4.3.0 - 4.3.1
2000-04-23 2001-04-15 2002-03-31 Warning: easter_date() [http://www.php.net/function.easter-date]: This function is only valid for years between 1970 and 2037 inclusive in /in/DKD55 on line 6 1970-01-01