3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new IntlDateFormatter( 'en_US', IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'America/Sao_Paulo', IntlDateFormatter::GREGORIAN, "yyyy-MM-dd HH:mm:ss" ); echo $formatter->format( new DateTime('2019-12-31 23:59:59', new DateTimeZone('America/Sao_Paulo')) );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
159.44 ms | 2078 KiB | 8 Q