3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y/m/d H:i'); echo '<br>'; echo date_format(new \DateTime(null, new \DateTimeZone('Europe/Madrid')), 'Y/m/d H:i');

preferences:
58.35 ms | 402 KiB | 5 Q