3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $week_number = 22; $year = 2014; for($day=1; $day<=7; $day++) { echo date('m/d/Y', strtotime($year."W".str_pad($week_number,2,'0',STR_PAD_LEFT).$day))."\n"; }
Output for 5.0.0 - 7.1.0
05/26/2014 05/27/2014 05/28/2014 05/29/2014 05/30/2014 05/31/2014 06/01/2014
Output for 4.3.0 - 4.4.9
01/01/1970 01/01/1970 01/01/1970 01/01/1970 01/01/1970 01/01/1970 01/01/1970