3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formats = [ IntlDateFormatter::FULL, IntlDateFormatter::LONG, IntlDateFormatter::MEDIUM, IntlDateFormatter::SHORT, ]; foreach ($formats as $format) { $formatter = new IntlDateFormatter( 'en_US', $format, IntlDateFormatter::NONE, 'Europe/Moscow' ); echo $formatter->format(1455111783), PHP_EOL; }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
158.07 ms | 3094 KiB | 8 Q