3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $confirm_date = strtotime('2015-09-19'); $today_date = strtotime('2015-09-17'); $diff = $confirm_date - $today_date; $daysleft = floor($diff/86400); if($daysleft == 2) { echo 'yes'; echo $daysleft; }
based on 9Q1dW
Output for 5.3.18 - 7.2.6
yes2