3v4l.org

run code in 200+ 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-m-d')).' d.' ;
Output for 4.3.0 - 7.2.0
1524 d.