3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = '2014-03-04'; $year = date("Y", strtotime($date)); $yearDay = date("z", strtotime($date)) + 1; $yearDays = date("z", strtotime($year."-12-31")); echo $yearDays; echo $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
364630.17307692307692