3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yr="2014"; $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+1));; echo $dif; ?>

preferences:
45.33 ms | 402 KiB | 5 Q