3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cdate=date('2015-06-20'); $weekno = date('W',strtotime($cdate)); $yr = date('Y',strtotime($cdate)); $dt = $yr."W".$weekno ; echo date('Y-m-d',strtotime( $dt)); $dtt=strtotime("+6 days", strtotime($dt)); echo date('Y-m-d', $dtt); ?>
based on 1GoSW
Output for 5.1.0 - 7.3.0beta1
2015-06-152015-06-21
Output for 5.0.0 - 5.0.5
2015-01-092015-01-15
Output for 4.3.0 - 4.4.9
1970-01-011970-01-07