3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '2013-04-05 01:07:05'; echo date('Y-m-d', strtotime($str));
Output for 4.3.0 - 7.1.0
2013-04-05