3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = 1990; $end = 2030; $result = []; for($i = $start; $i <= $end; $i++){ $result[] = [easter_days($i) => date('Y-m-d', easter_date($i))]; } print_r($result);
Output for 7.2.5 - 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function easter_days() in /in/of2qZ:8 Stack trace: #0 {main} thrown in /in/of2qZ on line 8
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Array ( [0] => Array ( [25] => 1990-04-15 ) [1] => Array ( [10] => 1991-03-31 ) [2] => Array ( [29] => 1992-04-19 ) [3] => Array ( [21] => 1993-04-11 ) [4] => Array ( [13] => 1994-04-03 ) [5] => Array ( [26] => 1995-04-16 ) [6] => Array ( [17] => 1996-04-07 ) [7] => Array ( [9] => 1997-03-30 ) [8] => Array ( [22] => 1998-04-12 ) [9] => Array ( [14] => 1999-04-04 ) [10] => Array ( [33] => 2000-04-23 ) [11] => Array ( [25] => 2001-04-15 ) [12] => Array ( [10] => 2002-03-31 ) [13] => Array ( [30] => 2003-04-20 ) [14] => Array ( [21] => 2004-04-11 ) [15] => Array ( [6] => 2005-03-27 ) [16] => Array ( [26] => 2006-04-16 ) [17] => Array ( [18] => 2007-04-08 ) [18] => Array ( [2] => 2008-03-23 ) [19] => Array ( [22] => 2009-04-12 ) [20] => Array ( [14] => 2010-04-04 ) [21] => Array ( [34] => 2011-04-24 ) [22] => Array ( [18] => 2012-04-08 ) [23] => Array ( [10] => 2013-03-31 ) [24] => Array ( [30] => 2014-04-20 ) [25] => Array ( [15] => 2015-04-05 ) [26] => Array ( [6] => 2016-03-27 ) [27] => Array ( [26] => 2017-04-16 ) [28] => Array ( [11] => 2018-04-01 ) [29] => Array ( [31] => 2019-04-21 ) [30] => Array ( [22] => 2020-04-12 ) [31] => Array ( [14] => 2021-04-04 ) [32] => Array ( [27] => 2022-04-17 ) [33] => Array ( [19] => 2023-04-09 ) [34] => Array ( [10] => 2024-03-31 ) [35] => Array ( [30] => 2025-04-20 ) [36] => Array ( [15] => 2026-04-05 ) [37] => Array ( [7] => 2027-03-28 ) [38] => Array ( [26] => 2028-04-16 ) [39] => Array ( [11] => 2029-04-01 ) [40] => Array ( [31] => 2030-04-21 ) )
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Call to undefined function easter_days() in /in/of2qZ:8 Stack trace: #0 {main}
Process exited with code 255.