3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date( 'Y-m-d', strtotime( '-1 year 01.01.' . date( 'Y' ) ) ) . "\n"; echo date( 'Y-m-d', strtotime( '-1 year' ) );

preferences:
44.41 ms | 402 KiB | 5 Q