3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = '2014-03-04'; $yearDay = date("z", strtotime($date)) + 1; $yearDays = date("z", strtotime(date("Y", strtotime($date))."-12-31")) + 1; echo $yearDays.' '.$yearDay.' '; echo $yearDay/$yearDays; ?>
Output for 4.3.0 - 7.1.0
365 63 0.17260273972603