3v4l.org

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