3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sun_info = date_sun_info((new \DateTime(null, new \DateTimeZone('UTC')))->getTimestamp(), -0.085833, -34.76); foreach ($sun_info as $key => $val) { echo "$key: " . date("H:i:s", $val) . "\n"; }
based on boVQh
Output for 7.2.0 - 7.3.0beta1
sunrise: 10:19:57 sunset: 22:26:43 transit: 16:23:20 civil_twilight_begin: 09:59:18 civil_twilight_end: 22:47:22 nautical_twilight_begin: 09:35:14 nautical_twilight_end: 23:11:26 astronomical_twilight_begin: 09:11:10 astronomical_twilight_end: 23:35:30
Output for 5.5.0 - 7.1.20
sunrise: 10:19:49 sunset: 22:26:36 transit: 16:23:12 civil_twilight_begin: 09:59:10 civil_twilight_end: 22:47:15 nautical_twilight_begin: 09:35:06 nautical_twilight_end: 23:11:19 astronomical_twilight_begin: 09:11:02 astronomical_twilight_end: 23:35:23