3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date_start = '2017-06-08 00:00:00'; $ds = trim(explode(" ", $date_start)[0]); echo "[" . $ds . "]"; $date = DateTime::createFromFormat('Y-m-d', $ds); echo $date->format('d/m'); ?>
based on jZQnv
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
[2017-06-08]08/06