3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); echo date_default_timezone_get(), PHP_EOL; $utc = new DateTimeZone('UTC'); $time = DateTime::createFromFormat('Y-m-d H:i:s', '2014-05-19 11:30:00'); foreach (array('BST', 'Etc/GMT+1', 'GMT+1', 'CEST') as $abbr) { $time->setTimezone(new DateTimeZone($abbr)); echo "{$abbr}: {$time->format(DATE_RFC822)}", PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
UTC BST: Mon, 19 May 14 12:30:00 +0100 Etc/GMT+1: Mon, 19 May 14 10:30:00 -0100 GMT+1: Mon, 19 May 14 12:30:00 +0100 CEST: Mon, 19 May 14 13:30:00 +0200

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