3v4l.org

run code in 300+ PHP versions simultaneously
<?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('d/m/Y', strtotime(date('Y')."-W27-".date('t'))); ?>

preferences:
38.26 ms | 402 KiB | 5 Q