3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time_begin = strtotime("2011-07-03"); $time_end = strtotime("2014-03-12"); $time_differ = $time_end - $time_begin; $month_differ = date('m', $time_differ); echo intval($month_differ)-1;
Output for 4.3.0 - 7.2.0
8