3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = \DateTime::createFromFormat("m-d-y", '07-03-17'); if ($date) { $date->setTime(0, 0); } echo $date->date;
based on 2QK2i
Output for 5.6.0 - 5.6.38, hhvm-3.15.4 - 3.21.3, 7.0.0 - 7.3.0rc6
Notice: Undefined property: DateTime::$date in /in/VQd25 on line 7
Output for hhvm-3.22.0
Notice: Undefined property: DateTime::$date in /in/VQd25 on line -1