3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = new DateTime("now", new DateTimeZone('UTC')); var_dump($now->format('H:i:s')); $now->setTimezone(new DateTimeZone('Europe/London')); var_dump($now->format('H:i:s'));
based on 7TnpR
Output for 5.6.28, 7.0.20 - 7.2.0
string(8) "13:29:04" string(8) "14:29:04"
Output for 7.0.6
string(8) "06:20:07" string(8) "07:20:07"
Output for 7.0.5
string(8) "19:16:40" string(8) "20:16:40"
Output for 7.0.4
string(8) "06:35:20" string(8) "06:35:20"
Output for 7.0.3
string(8) "07:08:30" string(8) "07:08:30"
Output for 7.0.2
string(8) "12:53:46" string(8) "12:53:46"
Output for 7.0.1
string(8) "17:56:10" string(8) "17:56:10"
Output for 7.0.0
string(8) "19:33:07" string(8) "19:33:07"
Output for 5.6.21
string(8) "01:40:02" string(8) "02:40:02"
Output for 5.6.20
string(8) "18:09:18" string(8) "19:09:18"
Output for 5.6.19
string(8) "14:42:22" string(8) "14:42:22"
Output for 5.6.18
string(8) "22:28:19" string(8) "22:28:19"
Output for 5.6.17
string(8) "11:26:46" string(8) "11:26:46"
Output for 5.6.16
string(8) "20:19:02" string(8) "21:19:02"
Output for 5.6.15
string(8) "21:11:57" string(8) "22:11:57"
Output for 5.6.14
string(8) "23:45:56" string(8) "00:45:56"
Output for 5.6.13
string(8) "03:41:24" string(8) "04:41:24"
Output for 5.6.12
string(8) "17:19:24" string(8) "18:19:24"
Output for 5.6.11
string(8) "00:19:56" string(8) "01:19:56"
Output for 5.6.10
string(8) "02:09:22" string(8) "03:09:22"
Output for 5.6.9
string(8) "07:06:51" string(8) "08:06:51"
Output for 5.6.8
string(8) "15:08:00" string(8) "16:08:00"
Output for 5.6.7
string(8) "09:50:03" string(8) "10:50:03"
Output for 5.5.35
string(8) "05:21:59" string(8) "06:21:59"
Output for 5.5.34
string(8) "20:33:17" string(8) "21:33:17"
Output for 5.5.33
string(8) "17:31:30" string(8) "17:31:30"
Output for 5.5.32
string(8) "00:19:34" string(8) "00:19:34"
Output for 5.5.31
string(8) "14:13:28" string(8) "14:13:28"
Output for 5.5.30
string(8) "23:20:11" string(8) "00:20:11"
Output for 5.5.29
string(8) "17:46:29" string(8) "18:46:29"
Output for 5.5.28
string(8) "20:25:10" string(8) "21:25:10"
Output for 5.5.27
string(8) "22:55:59" string(8) "23:55:59"
Output for 5.5.26
string(8) "04:35:12" string(8) "05:35:12"
Output for 5.5.25
string(8) "10:38:40" string(8) "11:38:40"
Output for 5.5.24
string(8) "17:34:45" string(8) "18:34:45"
Output for 5.4.44 - 5.4.45
string(8) "13:29:13" string(8) "14:29:13"
Output for 5.4.36 - 5.4.43
string(8) "13:29:14" string(8) "14:29:14"
Output for 5.4.26 - 5.4.35
string(8) "13:29:15" string(8) "14:29:15"
Output for 5.4.20 - 5.4.25
string(8) "13:29:16" string(8) "14:29:16"
Output for 5.4.12 - 5.4.19
string(8) "13:29:17" string(8) "14:29:17"
Output for 5.4.8 - 5.4.11
string(8) "13:29:18" string(8) "14:29:18"
Output for 5.4.7
string(8) "00:51:08" string(8) "00:51:08"
Output for 5.4.6
string(8) "02:16:45" string(8) "02:16:45"
Output for 5.4.5
string(8) "03:47:29" string(8) "03:47:29"
Output for 5.4.4
string(8) "05:22:37" string(8) "05:22:37"
Output for 5.4.3
string(8) "07:04:03" string(8) "07:04:03"
Output for 5.4.2
string(8) "08:49:26" string(8) "08:49:26"
Output for 5.3.29
string(8) "04:30:35" string(8) "04:30:35"
Output for 5.3.28
string(8) "06:38:25" string(8) "06:38:25"
Output for 5.3.27
string(8) "08:46:54" string(8) "08:46:54"
Output for 5.3.26
string(8) "07:43:21" string(8) "07:43:21"
Output for 5.3.25
string(8) "09:26:02" string(8) "09:26:02"
Output for 5.3.24
string(8) "10:44:14" string(8) "10:44:14"
Output for 5.3.23
string(8) "12:08:34" string(8) "12:08:34"
Output for 5.3.22
string(8) "13:39:24" string(8) "13:39:24"
Output for 5.3.21
string(8) "14:52:01" string(8) "14:52:01"
Output for 5.3.20
string(8) "15:50:10" string(8) "15:50:10"
Output for 5.3.19
string(8) "17:17:44" string(8) "17:17:44"
Output for 5.3.18
string(8) "18:08:33" string(8) "18:08:33"