3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Pacific/Auckland'); $dt = new DateTimeImmutable('2020-09-24 12:00:00', new DateTimeZone('Pacific/Auckland')); var_dump($dt->getTimestamp()); var_dump($ts = date_sunrise($dt->getTimestamp(), SUNFUNCS_RET_TIMESTAMP, -38.6623, 178.0176)); var_dump(date('Y-m-d H:i:s', $ts));
Output for git.master, git.master_jit, rfc.property-hooks
int(1600905600) Deprecated: Function date_sunrise() is deprecated in /in/ZEg9Q on line 7 int(1600969950) string(19) "2020-09-25 05:52:30"

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.73 ms | 401 KiB | 8 Q