3v4l.org

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