3v4l.org

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