3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $nowDate = new \DateTime(); var_dump(date("Y-m-d H:i:s", $nowDate));
based on Ecau6
Output for 7.0.0 - 7.2.0
Warning: date() expects parameter 2 to be integer, object given in /in/qvDse on line 4 bool(false)
Output for 5.4.0 - 5.6.28
Warning: date() expects parameter 2 to be long, object given in /in/qvDse on line 4 bool(false)