3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime(); $dt->setTimezone(new DateTimeZone('EST')); echo $dt->format('m-d H:i') ."\n\n"; $dt->setTimezone(new DateTimeZone('EST')); echo $dt->format('m-d H:i');
based on EINCv
Output for 7.0.20, 7.1.5 - 7.2.0
08-31 11:12 08-31 11:12
Output for 5.6.28, 7.1.0
08-31 11:12 08-31 06:12
Output for 7.0.6
05-03 11:21 05-03 06:21
Output for 7.0.5
04-02 23:47 04-02 18:47
Output for 7.0.4
03-10 12:34 03-10 07:34
Output for 7.0.3
03-18 13:41 03-18 08:41
Output for 7.0.2
03-22 19:49 03-22 14:49
Output for 7.0.1
03-23 23:29 03-23 18:29
Output for 7.0.0
03-27 00:25 03-26 19:25
Output for 5.6.21
05-02 06:31 05-02 01:31
Output for 5.6.20
04-09 22:47 04-09 17:47
Output for 5.6.19
03-07 20:45 03-07 15:45
Output for 5.6.18
03-15 05:28 03-15 00:28
Output for 5.6.17
03-19 17:07 03-19 12:07
Output for 5.6.16
03-28 01:13 03-27 20:13
Output for 5.6.15
03-29 02:03 03-28 21:03
Output for 5.6.14
04-02 03:55 04-01 22:55
Output for 5.6.13
04-15 08:18 04-15 03:18
Output for 5.6.12
04-19 22:48 04-19 17:48
Output for 5.6.11
04-24 05:09 04-24 00:09
Output for 5.6.10
04-25 07:13 04-25 02:13
Output for 5.6.9
04-27 12:23 04-27 07:23
Output for 5.6.8
04-29 21:15 04-29 16:15
Output for 5.5.35
05-22 13:26 05-22 08:26
Output for 5.5.34
04-11 00:58 04-10 19:58
Output for 5.5.33
03-08 23:27 03-08 18:27
Output for 5.5.32
03-17 09:23 03-17 04:23
Output for 5.5.31
03-20 20:09 03-20 15:09
Output for 5.5.30
04-01 03:57 03-31 22:57
Output for 5.5.29
04-16 22:42 04-16 17:42
Output for 5.5.28
04-21 02:01 04-20 21:01
Output for 5.5.27
04-22 03:48 04-21 22:48
Output for 5.5.26
04-26 09:56 04-26 04:56
Output for 5.5.25
04-28 16:48 04-28 11:48
Output for 5.5.24
05-23 23:22 05-23 18:22
Output for 5.2.0 - 5.4.45
11-04 23:53 11-04 23:53
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/WYrmm on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/WYrmm on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/WYrmm on line 2