3v4l.org

run code in 200+ PHP versions simultaneously
<?php $formatter = new IntlDateFormatter( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Europe/London', IntlDateFormatter::GREGORIAN, "Y-MM-dd" ); echo $formatter->format( new DateTime('2017-01-01 12:00:00', new DateTimeZone('Europe/London')) );
based on oeWEb
Output for 7.0.0 - 7.4.0
2017-01-01