3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $old_date = '2015-05-06'; $old_date_timestamp = strtotime($old_date); $new_date = date('Y-m-d H:i:s', $old_date_timestamp); echo $new_date;
Output for 4.3.0 - 7.2.0
2015-05-06 00:00:00