3v4l.org

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