3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('d/m/Y'); print "\n"; echo date('d/m/Y', strtotime("1-W".date('W')."-".date('Y'))); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-".date("W")."-1")); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-".date("W")."-5")); ?>
Output for 5.1.0 - 5.1.1, 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
13/06/2014 01/01/1970 01/01/1970 01/01/1970
Output for 5.1.3 - 5.1.6
13/06/2014 01/01/1970 14/06/2014 14/06/2014
Output for 5.1.2
13/06/2014 01/01/1970 13/06/2014 14/06/2014
Output for 5.0.0 - 5.0.5
13/06/2014 15/12/2006 01/12/2015 05/12/2015
Output for 4.3.0 - 4.4.9
13/06/2014 01/01/1970 01/12/2015 05/12/2015