3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $startYear = 2014; $modYear = 3; $lastTaken = 2017; $currentYear = 2021; $useYear = min($lastTaken, $currentYear); $nextYear = $useYear + ($modYear - (($useYear - $startYear) % $modYear)); echo $nextYear;
based on 6NbYf
Output for 4.3.0 - 7.2.0
2020