3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $startYear = 2014; $currentYear = 2016; $modYear = 3; $nextYear = $currentYear; for($i = $currentYear; $i <= $currentYear+$modYear; $i++) { if(($i % $startYear) % $currentYear == 0) { $nextYear = $i; break; } } echo $nextYear;
based on 933oX
Output for 4.3.0 - 7.2.0
2016