3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'fr_FR'; $dateString = '2020-08-01'; $date = new DateTimeImmutable($dateString); $dateFormatter = new IntlDateFormatter( $locale, IntlDateFormatter::FULL, NULL ); $numberFormatter = new NumberFormatter($locale, NumberFormatter::ORDINAL); $ordinalDay = $numberFormatter->format($date->format('d')); $dateFormatter->setPattern('LLLL Y'); echo $ordinalDay . ' ' . $dateFormatter->format($date->getTimestamp());
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: IntlDateFormatter::__construct(): Passing null to parameter #3 ($timeType) of type int is deprecated in /in/P55so on line 6 1er août 2020

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:
67.47 ms | 401 KiB | 8 Q