3v4l.org

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

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