3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo floor((int)date('m', strtotime('18.02.2015')) +2); echo '<br>'; echo floor(((int)date('m', strtotime('18.01.2015'))+2)/3)*3;
based on asaa8
Output for 5.1.0 - 7.2.0
4<br>3
Output for 4.3.0 - 5.0.5
3<br>3