3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $week_number = 40; $year = 2008; 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
09/29/2008 09/30/2008 10/01/2008 10/02/2008 10/03/2008 10/04/2008 10/05/2008
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