3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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); $dtime = new DateTime(); $dtime->setTimestamp($time); $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"; echo "\n"; echo "ICU: ", $formatter->format($dtime), "\n"; echo "PHP: ", $dtime->format("j F Y, H:i:s"), "\n"; echo "str: ", strftime("%d %B %Y, %T", $dtime), "\n";
based on 80XCG
Output for 7.0.0 - 7.2.0
ICU: 31 декабря 2015, 12:34:56 PHP: 31 December 2014, 12:34:56 str: 31 December 2014, 12:34:56 ICU: 31 декабря 2015, 12:34:56 PHP: 31 December 2014, 12:34:56 str: Warning: strftime() expects parameter 2 to be integer, object given in /in/QreSp on line 15
Output for 5.5.18 - 5.6.28
ICU: 31 декабря 2015, 12:34:56 PHP: 31 December 2014, 12:34:56 str: 31 December 2014, 12:34:56 ICU: 31 декабря 2015, 12:34:56 PHP: 31 December 2014, 12:34:56 str: Warning: strftime() expects parameter 2 to be long, object given in /in/QreSp on line 15
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 ICU: 31 декабря 2015, 11:34:56 PHP: 31 December 2014, 12:34:56 str: Warning: strftime() expects parameter 2 to be long, object given in /in/QreSp on line 15
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 ICU: 31 декабря 2015, 05:34:56 PHP: 31 December 2014, 12:34:56 str: Warning: strftime() expects parameter 2 to be long, object given in /in/QreSp on line 15
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 ICU: 31 декабря 2015, 04:34:56 PHP: 31 December 2014, 12:34:56 str: Warning: strftime() expects parameter 2 to be long, object given in /in/QreSp on line 15