3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d', strtotime('-1 day', strtotime($date_raw)));

preferences:
38.01 ms | 402 KiB | 5 Q