3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php Locale::setDefault('no_NO'); $fmt = new IntlDateFormatter( Locale::getDefault(), IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo 'Formatted output is ' . $fmt->format(0).'\n'; Locale::setDefault('en_GB'); $fmt = new IntlDateFormatter( Locale::getDefault(), IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo 'Formatted output is ' . $fmt->format(0);
based on 5LYKS
Output for 5.6.0 - 7.3.0
Formatted output is onsdag 31. desember 1969 16.00.00 normaltid for den nordamerikanske Stillehavskysten\nFormatted output is Wednesday, 31 December 1969 at 16:00:00 Pacific Standard Time
Output for 5.3.19 - 5.5.38
Fatal error: Class 'Locale' not found in /in/NcbHO on line 2
Process exited with code 255.