3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('2017-05-13T21:54:00', new DateTimeZone('America/New_York')); $zones = [ new DateTimeZone('Antarctica/Casey'), new DateTimeZone('Europe/Helsinki'), ]; foreach ($zones as $zone) { echo (clone $date)->setTimezone($zone)->format('c') . PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
2017-05-14T12:54:00+11:00 2017-05-14T04:54:00+03:00

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:
103.97 ms | 1657 KiB | 4 Q