3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timezones = [ '+01:00', '+01:45', '+01:45:30' ]; $now = new DateTimeImmutable(); foreach ($timezones as $timezone) { $dtz = new DatetimeZone($timezone); echo $dtz->getName(), ', ', $dtz->getOffset($now), PHP_EOL; }
Output for git.master, git.master_jit
+01:00, 3600 +01:45, 6300 +01:45, 6330
Output for rfc.property-hooks
+01:00, 3600 +01:45, 6300 +01:45:30, 6330

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.97 ms | 406 KiB | 5 Q