3v4l.org

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