3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($year = 1970; $year <= 2037; $year++) { echo gmdate('Y-M-d H:i:s', easter_date($year)) . "\n"; }
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
1970-Mar-28 23:00:00 1971-Apr-10 23:00:00 1972-Apr-01 23:00:00 1973-Apr-21 23:00:00 1974-Apr-13 23:00:00 1975-Mar-29 23:00:00 1976-Apr-17 23:00:00 1977-Apr-09 22:00:00 1978-Mar-25 23:00:00 1979-Apr-14 22:00:00 1980-Apr-05 23:00:00 1981-Apr-18 22:00:00 1982-Apr-10 22:00:00 1983-Apr-02 22:00:00 1984-Apr-21 22:00:00 1985-Apr-06 22:00:00 1986-Mar-29 23:00:00 1987-Apr-18 22:00:00 1988-Apr-02 22:00:00 1989-Mar-25 23:00:00 1990-Apr-14 22:00:00 1991-Mar-30 23:00:00 1992-Apr-18 22:00:00 1993-Apr-10 22:00:00 1994-Apr-02 22:00:00 1995-Apr-15 22:00:00 1996-Apr-06 22:00:00 1997-Mar-29 23:00:00 1998-Apr-11 22:00:00 1999-Apr-03 22:00:00 2000-Apr-22 22:00:00 2001-Apr-14 22:00:00 2002-Mar-30 23:00:00 2003-Apr-19 22:00:00 2004-Apr-10 22:00:00 2005-Mar-26 23:00:00 2006-Apr-15 22:00:00 2007-Apr-07 22:00:00 2008-Mar-22 23:00:00 2009-Apr-11 22:00:00 2010-Apr-03 22:00:00 2011-Apr-23 22:00:00 2012-Apr-07 22:00:00 2013-Mar-30 23:00:00 2014-Apr-19 22:00:00 2015-Apr-04 22:00:00 2016-Mar-26 23:00:00 2017-Apr-15 22:00:00 2018-Mar-31 22:00:00 2019-Apr-20 22:00:00 2020-Apr-11 22:00:00 2021-Apr-03 22:00:00 2022-Apr-16 22:00:00 2023-Apr-08 22:00:00 2024-Mar-30 23:00:00 2025-Apr-19 22:00:00 2026-Apr-04 22:00:00 2027-Mar-27 23:00:00 2028-Apr-15 22:00:00 2029-Mar-31 22:00:00 2030-Apr-20 22:00:00 2031-Apr-12 22:00:00 2032-Mar-27 23:00:00 2033-Apr-16 22:00:00 2034-Apr-08 22:00:00 2035-Mar-24 23:00:00 2036-Apr-12 22:00:00 2037-Apr-04 22:00:00
Output for hhvm-3.12.0
Fatal error: Uncaught Error: Call to undefined function easter_date() in /in/qWS8V:4 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: Call to undefined function easter_date() in /in/qWS8V on line 4
Process exited with code 255.