3v4l.org

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