3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (array('en_US', 'fr_FR') as $locale) { $formatter = new IntlDateFormatter($locale, IntlDateFormatter::NONE, IntlDateFormatter::NONE, null, null, 'e'); foreach (array(1, 7) as $dow) { echo "${locale}(${dow}): " . date('l', $formatter->parse($dow)) . "\n"; } }

preferences:
55.55 ms | 402 KiB | 5 Q