3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locales = [ 'pl_PL', 'en-US']; function createLocalizedMonthName( $month, $locale, $format = "MMMM"){ $date = DateTime::createFromFormat("!m", $month); $dateFormatter = new IntlDateFormatter($locale,IntlDateFormatter::FULL, IntlDateFormatter::FULL); $dateFormatter->setPattern($format); return $dateFormatter->format($date); } foreach( $locales as $locale){ foreach (range(1, 10) as $monthNumber) { echo $monthNumber . " - " .createLocalizedMonthName($monthNumber,$locale) . PHP_EOL; } echo PHP_EOL. PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
1 - stycznia 2 - lutego 3 - marca 4 - kwietnia 5 - maja 6 - czerwca 7 - lipca 8 - sierpnia 9 - września 10 - października 1 - January 2 - February 3 - March 4 - April 5 - May 6 - June 7 - July 8 - August 9 - September 10 - October

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:
91.97 ms | 402 KiB | 8 Q