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(1446040313 )."\n";
based on PBRbA
Output for 5.6.0 - 7.3.0
Formatted output is onsdag 31. desember 1969 16.00.00 normaltid for den nordamerikanske Stillehavskysten Formatted output is Wednesday, 28 October 2015 at 06:51:53 Pacific Daylight Time
Output for 5.3.19 - 5.5.38
Fatal error: Class 'Locale' not found in /in/nnhGe on line 2
Process exited with code 255.