3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $startYear = 2014; $currentYear = 2057; $recurrenceYears = 3; $nextYear = $currentYear + ($recurrenceYears - (($currentYear - $startYear) % $recurrenceYears)); echo $nextYear;
based on PEPaa
Output for 4.3.0 - 7.1.0
2059