3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = "2014-11-29"; $today = date('Y-m-d'); echo $today; $diff = abs(strtotime($date) - strtotime($today)); $days = floor($diff /3600/24); echo $days;
based on vAuOM
Output for 4.3.0 - 7.1.0
2014-09-2664