3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yr="2012"; $dif=2012-$yr; $week="01"; $day="Monday"; $day=date("D",strtotime($day)); echo date("Y-m-d", strtotime($yr."W".$week."D ".$day)+86000*$dif);; ?>

preferences:
38.16 ms | 402 KiB | 5 Q