3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $startYear = 2014; $modYear = 3; $currentYear = 2014; $nextYear = $currentYear + ($modYear - (($currentYear - $startYear) % $modYear)); echo $nextYear;
based on ONtdT
Output for 4.3.0 - 7.2.0
2017