3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(date('w', new Datetime('2016-01-15')));
based on 4gJ8C
Output for 7.0.0 - 7.2.0
Warning: date() expects parameter 2 to be integer, object given in /in/Kvq8N on line 2 bool(false)
Output for 5.5.0 - 5.6.28
Warning: date() expects parameter 2 to be long, object given in /in/Kvq8N on line 2 bool(false)