3v4l.org

run code in 300+ PHP versions simultaneously
<?php function formatted_month($month) { $first_day_in_month = new DateTime('2022-01-01'); $fmt = datefmt_create( 'fr_FR', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Europe/Paris', IntlDateFormatter::GREGORIAN, 'MMMM YY' ); $formatted_month = datefmt_format($fmt,$first_day_in_month); return $formatted_month; } function formatted_month2($month) { $first_day_in_month = new DateTime('2022-01-01'); $fmt = datefmt_create( 'en_EN', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Europe/Paris', IntlDateFormatter::GREGORIAN, 'MMMM YY' ); $formatted_month = datefmt_format($fmt,$first_day_in_month); return $formatted_month; } echo formatted_month(1); echo PHP_EOL; echo formatted_month2(1);
Output for git.master, git.master_jit, rfc.property-hooks
janvier 21 January 22

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
131.65 ms | 405 KiB | 5 Q