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) . "<br>" . PHP_EOL; } echo "<hr>"; }
Output for git.master, git.master_jit, rfc.property-hooks
1 - stycznia<br> 2 - lutego<br> 3 - marca<br> 4 - kwietnia<br> 5 - maja<br> 6 - czerwca<br> 7 - lipca<br> 8 - sierpnia<br> 9 - września<br> 10 - października<br> <hr>1 - January<br> 2 - February<br> 3 - March<br> 4 - April<br> 5 - May<br> 6 - June<br> 7 - July<br> 8 - August<br> 9 - September<br> 10 - October<br> <hr>

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