3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('d/m/Y'); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W".date("W")."-1")); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W".date("W")."-5")); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W27-1")); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W27-5")); print "\n"; echo date('N', strtotime(date('Y')."-W27-".date('t'))); ?>
Output for 5.2.0 - 7.2.0
13/06/2014 09/06/2014 13/06/2014 30/06/2014 04/07/2014 4
Output for 5.1.0 - 5.1.6
13/06/2014 01/01/1970 01/01/1970 01/01/1970 01/01/1970 4
Output for 5.0.0 - 5.0.5
13/06/2014 09/06/2014 13/06/2014 30/06/2014 04/07/2014 N
Output for 4.3.0 - 4.4.9
13/06/2014 01/01/1970 01/01/1970 01/01/1970 01/01/1970 N