3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = date_create(); date_timezone_set($dt, timezone_open('EST')); echo $dt->format('m-d H:i') ."\n\n"; date_timezone_set($dt, timezone_open('EST')); echo $dt->format('m-d H:i');
based on 0KEr5
Output for 7.0.20, 7.1.5 - 7.2.0
08-31 10:43 08-31 10:43
Output for 5.6.28, 7.1.0
08-31 10:43 08-31 05:43
Output for 7.0.6
05-03 08:09 05-03 03:09
Output for 7.0.5
04-02 20:46 04-02 15:46
Output for 7.0.4
03-10 09:08 03-10 04:08
Output for 7.0.3
03-18 09:46 03-18 04:46
Output for 7.0.2
03-22 15:52 03-22 10:52
Output for 7.0.1
03-23 20:17 03-23 15:17
Output for 7.0.0
03-26 21:16 03-26 16:16
Output for 5.6.21
05-02 03:21 05-01 22:21
Output for 5.6.20
04-09 19:42 04-09 14:42
Output for 5.6.19
03-07 16:51 03-07 11:51
Output for 5.6.18
03-15 01:43 03-14 20:43
Output for 5.6.17
03-19 13:41 03-19 08:41
Output for 5.6.16
03-27 22:05 03-27 17:05
Output for 5.6.15
03-28 22:58 03-28 17:58
Output for 5.6.14
04-02 01:00 04-01 20:00
Output for 5.6.13
04-15 05:11 04-15 00:11
Output for 5.6.12
04-19 19:31 04-19 14:31
Output for 5.6.11
04-23 02:07 04-22 21:07
Output for 5.6.10
04-25 03:58 04-24 22:58
Output for 5.6.9
04-27 09:05 04-27 04:05
Output for 5.6.8
04-29 17:39 04-29 12:39
Output for 5.5.35
05-22 07:47 05-22 02:47
Output for 5.5.34
04-10 21:57 04-10 16:57
Output for 5.5.33
03-08 19:56 03-08 14:56
Output for 5.5.32
03-17 05:12 03-17 00:12
Output for 5.5.31
03-20 16:26 03-20 11:26
Output for 5.5.30
04-01 00:51 03-31 19:51
Output for 5.5.29
04-16 19:31 04-16 14:31
Output for 5.5.28
04-20 22:42 04-20 17:42
Output for 5.5.27
04-22 00:44 04-21 19:44
Output for 5.5.26
04-26 06:37 04-26 01:37
Output for 5.5.25
04-28 13:12 04-28 08:12
Output for 5.5.24
05-23 20:13 05-23 15:13
Output for 5.4.45
09-06 11:03 09-06 11:03
Output for 5.2.0 - 5.4.44
08-31 11:44 08-31 11:44
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function date_create() in /in/EINCv on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_create() in /in/EINCv on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_create() in /in/EINCv on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_create() in /in/EINCv on line 3