3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("Asia/Irkutsk"); setlocale(LC_TIME, "ru_RU.UTF-8", "ru_RU", "ru"); $time = mktime(12, 34, 56, 12, 31, 2014); $formatter = new IntlDateFormatter("ru", IntlDateFormatter::FULL, IntlDateFormatter::FULL, null, null, "dd MMMM YYYY, HH:mm:ss"); echo "ICU: ", $formatter->format($time),"\n"; echo "PHP: ", date("j F Y, H:i:s", $time),"\n"; echo "str: ", strftime("%d %B %Y, %T",$time),"\n";
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
ICU: 31 декабря 2015, 12:34:56 PHP: 31 December 2014, 12:34:56 str: Deprecated: Function strftime() is deprecated in /in/80XCG on line 8 31 декабря 2014, 12:34:56
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30
ICU: 31 декабря 2015, 12:34:56 PHP: 31 December 2014, 12:34:56 str: 31 декабря 2014, 12:34:56
Output for 8.0.13
Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in /in/80XCG:5 Stack trace: #0 {main} thrown in /in/80XCG on line 5
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.33
Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /in/80XCG:5 Stack trace: #0 {main} thrown in /in/80XCG on line 5
Process exited with code 255.
Output for 5.5.18 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
ICU: 31 декабря 2015, 12:34:56 PHP: 31 December 2014, 12:34:56 str: 31 December 2014, 12:34:56
Output for 5.5.0 - 5.5.16
ICU: 31 декабря 2015, 11:34:56 PHP: 31 December 2014, 12:34:56 str: 31 December 2014, 12:34:56
Output for 5.4.34 - 5.4.45
ICU: 31 декабря 2015, 05:34:56 PHP: 31 December 2014, 12:34:56 str: 31 December 2014, 12:34:56
Output for 5.4.0 - 5.4.32
ICU: 31 декабря 2015, 04:34:56 PHP: 31 December 2014, 12:34:56 str: 31 December 2014, 12:34:56

preferences:
204.03 ms | 401 KiB | 298 Q