3v4l.org

run code in 300+ PHP versions simultaneously
<?php function easterOrthodox_date($year) { $a = $year % 4; $b = $year % 7; $c = $year % 19; $d = (19 * $c + 15) % 30; $e = (2 * $a + 4 * $b - $d + 34) % 7; $month = floor(($d + $e + 114) / 31); $day = (($d + $e + 114) % 31) + 1; $de = @mktime(0, 0, 0, $month, $day + 13, $year); return $de; } $years = array('2012', '2013', '2014', '2015', '2016', '2017', '2018'); foreach($years as $selYear) { $EasterOrth = @date('Y-m-d', @easterOrthodox_date($selYear)); echo $EasterOrth."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
2012-04-15 2013-05-05 2014-04-20 2015-04-12 2016-05-01 2017-04-16 2018-04-08

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.01 ms | 401 KiB | 8 Q