3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $target_days=mktime(0,0,0,12,02,2015); $today=time(); $diff_days=($target_days - $today); $days=(int)($diff_days/86400); echo "days till next birthday $days"; ?>
Output for 4.3.0 - 7.2.0
days till next birthday 182