3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d1 = strtotime("2015-02-01"); $d2 = strtotime("2016-03-01"); echo abs((date('Y', $d2) - date('Y', $d1))*12 + (date('m', $d2) - date('m', $d1))); ?>
based on TVcfD
Output for 4.3.0 - 7.3.0rc4
13