3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function dateDiff($start, $end) { $start = strtotime($start); $end = strtotime($end); $diff = $end - $start; return round($diff / 86400); } echo dateDiff("2010-01-30", date("Y")) ;
Output for 4.3.0 - 7.1.0
1525