3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(null, new DateTimeZone('Europe/London')); $france = new \IntlDateFormatter( 'fr_FR', \IntlDateFormatter::NONE, \IntlDateFormatter::NONE, $date->getTimezone() ); $uk = new \IntlDateFormatter( 'en_GB', \IntlDateFormatter::NONE, \IntlDateFormatter::NONE, $date->getTimezone() ); $us = new \IntlDateFormatter( 'en_US', \IntlDateFormatter::NONE, \IntlDateFormatter::NONE, $date->getTimezone() ); echo $france->format($date) . PHP_EOL; echo $uk->format($date) . PHP_EOL; echo $us->format($date) . PHP_EOL; echo $date->format('F j, Y, g:i a');

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
159.96 ms | 2543 KiB | 10 Q