run code in 300+ PHP versions simultaneously
<?php $dateFormat = new \IntlDateFormatter('ar_MO', \IntlDateFormatter::SHORT, \IntlDateFormatter::NONE); var_dump($dateFormat->getPattern()); var_dump($dateFormat->format(time())); var_dump($dateFormat->setPattern('d/M/y')); var_dump($dateFormat->format(time()));
based on 7uHem

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch master
string(11) "d‏/M‏/y" string(22) "٢٣‏/٦‏/٢٠٢٠" bool(true) string(16) "٢٣/٦/٢٠٢٠"

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