3v4l.org

run code in 200+ PHP versions simultaneously
<?php $formatter = new IntlDateFormatter( 'nl_NL', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Europe/Amsterdam', IntlDateFormatter::GREGORIAN, "Y" ); echo $formatter->format( new DateTime('2017-12-31 12:00:00', new DateTimeZone('Europe/Amsterdam')) );
based on C3LaU
Output for 5.6.0 - 7.4.1
2017