3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = DateTime::createFromFormat('d/m/Y', '10/23/2016'); $start = $date->format('Y-m-d'); var_dump($start); // $end = $date->modify('+10 week')->format('Y-m-d'); // var_dump($date); // var_dump($start); var_dump($end);
based on IfT04
Output for 5.6.0 - 7.3.0alpha1
string(10) "2017-11-10"