3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date("01-01-y",strtotime("-1 year")) ."\n"; echo date("31-12-y",strtotime("-1 year"));

preferences:
189.34 ms | 405 KiB | 5 Q