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-m-d')).' d.' ;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1524 d.