3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class fechis { } $date=new DateTime(date('d-m-y')); $DOY=date('z',$date) + 1; var_dump($DOY);
based on Woqqn
Output for 7.0.0 - 7.2.0
Warning: date() expects parameter 2 to be integer, object given in /in/m2Wde on line 6 int(1)
Output for 5.5.0 - 5.6.28
Warning: date() expects parameter 2 to be long, object given in /in/m2Wde on line 6 int(1)