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(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.4.0 - 5.4.29
Parse error: syntax error, unexpected ''t)));' (T_ENCAPSED_AND_WHITESPACE), expecting ')' in /in/3YXNu on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ')' in /in/3YXNu on line 12
Process exited with code 255.