3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date( 'Y-m-d', strtotime( '-1 year 01.01.' . date( 'Y' ) ) ); echo date( 'Y-m-d' );
Output for 5.1.0 - 7.1.7
2012-01-012013-04-24
Output for 4.3.0 - 5.0.5
1970-01-012013-04-24