3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fromDate="2013-03-03"; $toDate="2013-03-05"; $fromDate = strtotime($fromDate); $toDate = strtotime($toDate); $diffDate = abs($toDate - $fromDate); echo $diffDateLast = round($diffDate / (60 * 60 * 24)); echo ">>>>>>>>".date("Y-m-d H:i:s");
Output for 4.3.0 - 7.1.0
2>>>>>>>>2013-12-12 14:39:15