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('m', strtotime(date('Y')."-W27-5"); ?>
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
Parse error: syntax error, unexpected ';' in /in/6IecP on line 14
Process exited with code 255.

preferences:
181.83 ms | 1395 KiB | 66 Q