3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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; } $selYear = 2014; $EasterOrth = date('Y-m-d', easterOrthodox_date($selYear)); echo $EasterOrth;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2014-04-20