3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_TIME, "nl_NL"); $dbdate = "2019-06-24 18:02:30"; //SQL UTC timestamp $date = DateTime::createFromFormat("Y-m-d H:i:s", $dbdate, new DateTimeZone('UTC')); $date->setTimezone(new DateTimeZone('Europe/Amsterdam')); $fdate0 = $date->format('l H:i Y-m-d'); $fdate1 = strftime("%A %R %F",$date->getTimestamp()); echo $fdate0." compared to ".$fdate1;
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function strftime() is deprecated in /in/dNQZ4 on line 9 Monday 20:02 2019-06-24 compared to maandag 20:02 2019-06-24

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:
124.99 ms | 405 KiB | 5 Q