3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime(); $date->setTimestamp(1236443400)->setTimeZone(new \DateTimeZone('America/Chicago')); print ($date->format('c') === '2009-03-07T10:30:00-06:00') . PHP_EOL; $date = new \DateTime(); $date->setTimestamp(1244388600)->setTimeZone(new \DateTimeZone('America/Chicago')); print ($date->format('c') === '2009-06-07T10:30:00-05:00') . PHP_EOL; $date = new \DateTime(); $date->setTimestamp(-5076977400)->setTimeZone(new \DateTimeZone('UTC')); print ($date->format('c') === '1809-02-12T16:30:00+00:00') . PHP_EOL; $date = new \DateTime(); $date->setTimestamp(11833956240)->setTimeZone(new \DateTimeZone('UTC')); print ($date->format('c') === '2345-01-02T02:04:00+00:00') . PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
1 1 1 1

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