3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 1990; $end = 2030; $result = []; for($i = $start; $i <= $end; $i++){ $result[] = date('Y-m-d', easter_date($i)); } print_r($result);
Output for 7.1.20 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught Error: Call to undefined function easter_date() in /in/93uDe:8 Stack trace: #0 {main} thrown in /in/93uDe on line 8
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught Error: Call to undefined function easter_date() in /in/93uDe:8 Stack trace: #0 {main} thrown in /in/93uDe on line 8
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.10
Array ( [0] => 1990-04-15 [1] => 1991-03-31 [2] => 1992-04-19 [3] => 1993-04-11 [4] => 1994-04-03 [5] => 1995-04-16 [6] => 1996-04-07 [7] => 1997-03-30 [8] => 1998-04-12 [9] => 1999-04-04 [10] => 2000-04-23 [11] => 2001-04-15 [12] => 2002-03-31 [13] => 2003-04-20 [14] => 2004-04-11 [15] => 2005-03-27 [16] => 2006-04-16 [17] => 2007-04-08 [18] => 2008-03-23 [19] => 2009-04-12 [20] => 2010-04-04 [21] => 2011-04-24 [22] => 2012-04-08 [23] => 2013-03-31 [24] => 2014-04-20 [25] => 2015-04-05 [26] => 2016-03-27 [27] => 2017-04-16 [28] => 2018-04-01 [29] => 2019-04-21 [30] => 2020-04-12 [31] => 2021-04-04 [32] => 2022-04-17 [33] => 2023-04-09 [34] => 2024-03-31 [35] => 2025-04-20 [36] => 2026-04-05 [37] => 2027-03-28 [38] => 2028-04-16 [39] => 2029-04-01 [40] => 2030-04-21 )

preferences:
191.09 ms | 404 KiB | 188 Q