3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $birthday = mktime(0,0,0,2014,12,31); $days = (int)(($birthday-time())/60/60/24); print "There are $days days until birthday."; ?>
Output for 4.3.0 - 5.0.5, 5.2.6 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
There are 67334 days until birthday.
Output for 5.1.0 - 5.2.5
There are -16225 days until birthday.