3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = new DateTime("@1351382400"); var_dump($date1->format('c')); // Sun Oct 28 2012 00:00:00+00:00 var_dump($date1->getTimestamp()); //prints: 1351382400 $date1->setTimezone(new DateTimeZone("Europe/Stockholm")); var_dump($date1->format('U')); // prints: 1351382400 var_dump($date1->getTimestamp()); //prints: 1351386000
Output for git.master, git.master_jit, rfc.property-hooks
string(25) "2012-10-28T00:00:00+00:00" int(1351382400) string(10) "1351382400" int(1351382400)

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:
58.45 ms | 401 KiB | 8 Q