3v4l.org

run code in 300+ PHP versions simultaneously
<?php $base = 1509224400; // 2017-10-28 22:00:00 BST $intervalMins = 720; $utc = new \DateTimeZone('UTC'); $europeLondon = new \DateTimeZone('Europe/London'); // create datetime from timestamp $base = (new \DateTimeImmutable('@' . $base))->setTimeZone($utc); echo 'UTC modified: ' . $base->modify('+' . $intervalMins . ' minutes')->format('U Y-m-d H:i:s') . "\n"; echo 'Local modified: ' . $base->setTimezone($europeLondon)->modify('+' . $intervalMins . ' minutes')->format('U Y-m-d H:i:s') . "\n";
Output for git.master, git.master_jit, rfc.property-hooks
UTC modified: 1509267600 2017-10-29 09:00:00 Local modified: 1509271200 2017-10-29 10:00: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:
118.89 ms | 405 KiB | 5 Q