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); $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";
Output for git.master, git.master_jit, rfc.property-hooks
ICU: 31 декабря 2015, 12:34:56 PHP: 31 December 2014, 12:34:56 str: Deprecated: Function strftime() is deprecated in /in/QreSp on line 11 31 декабря 2014, 12:34:56 ICU: 31 декабря 2015, 12:34:56 PHP: 31 December 2014, 12:34:56 str: Deprecated: Function strftime() is deprecated in /in/QreSp on line 15 Fatal error: Uncaught TypeError: strftime(): Argument #2 ($timestamp) must be of type ?int, DateTime given in /in/QreSp:15 Stack trace: #0 /in/QreSp(15): strftime('%d %B %Y, %T', Object(DateTime)) #1 {main} thrown in /in/QreSp on line 15
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
50.16 ms | 402 KiB | 8 Q