3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = strtotime("2014-09-16"); $timestamp = strtotime('+15 weeks',$date); echo " Date=".date('Y-m-d', $timestamp); echo " Date=".date('Y-W', $timestamp)."last digit is week in year";
based on mXPC3
Output for 4.4.1 - 4.4.9, 5.0.5 - 7.1.0
Date=2014-12-30 Date=2014-01last digit is week in year
Output for 4.3.0 - 4.4.0, 5.0.0 - 5.0.4
Date=2014-12-30 Date=2014-1last digit is week in year