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")); echo $yearDays.' '.$yearDay.' '; echo $yearDay/$yearDays; ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
364 63 0.17307692307692