3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date("Y-m-d H:i:s", strtotime("-30 days", strtotime(date("Y-m-d 00:00:00"))));

preferences:
35.8 ms | 402 KiB | 5 Q