3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $yr="2014"; $week="01"; $day="Monday"; $day=date("D",strtotime($day)); $newdate= date("d-m-Y", strtotime($yr."W".$week."D ".$day));; $k = explode("-", $dmy); $ymd = $k[0]."-".$k[2]."-".$k[1]; echo $ymd ?>
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: dmy in /in/U1qNB on line 8 Notice: Undefined offset: 2 in /in/U1qNB on line 9 Notice: Undefined offset: 1 in /in/U1qNB on line 9 --
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: dmy in /in/U1qNB on line 8 Notice: Undefined offset: 2 in /in/U1qNB on line 9 Notice: Undefined offset: 1 in /in/U1qNB on line 9 --
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: dmy in /in/U1qNB on line 8 Notice: Undefined offset: 2 in /in/U1qNB on line 9 Notice: Undefined offset: 1 in /in/U1qNB on line 9 --