3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set("UTC"); $d = new DateTimeImmutable("now"); echo $d->format("Y-m-d H:i:s");
based on CQXtg
Output for 5.6.28, 7.0.20 - 7.2.0
2015-09-21 04:02:29
Output for 7.0.6
2016-05-03 05:18:34
Output for 7.0.5
2016-04-02 18:18:01
Output for 7.0.4
2016-03-10 05:29:23
Output for 7.0.3
2016-03-18 05:58:06
Output for 7.0.2
2016-03-22 11:30:52
Output for 7.0.1
2016-03-23 16:50:25
Output for 7.0.0
2016-03-26 18:31:55
Output for 5.6.21
2016-05-02 00:36:19
Output for 5.6.20
2016-04-09 14:38:26
Output for 5.6.19
2016-03-07 07:39:06
Output for 5.6.18
2016-03-14 20:10:21
Output for 5.6.17
2016-03-19 10:17:39
Output for 5.6.16
2016-03-27 19:16:52
Output for 5.6.15
2016-03-28 20:10:49
Output for 5.6.14
2016-04-01 22:36:55
Output for 5.6.13
2016-04-15 02:41:15
Output for 5.6.12
2016-04-19 16:14:26
Output for 5.6.11
2016-04-22 23:12:39
Output for 5.6.10
2016-04-25 01:04:30
Output for 5.6.9
2016-04-27 06:02:25
Output for 5.6.8
2016-04-29 13:58:25
Output for 5.6.7
2016-05-25 06:41:58
Output for 5.5.35
2016-05-22 04:13:44
Output for 5.5.34
2016-04-10 19:32:23
Output for 5.5.33
2016-03-08 16:23:46
Output for 5.5.32
2016-03-16 22:26:39
Output for 5.5.31
2016-03-20 13:06:06
Output for 5.5.30
2016-03-31 22:11:22
Output for 5.5.29
2016-04-16 16:46:01
Output for 5.5.28
2016-04-20 19:19:18
Output for 5.5.27
2016-04-21 21:44:48
Output for 5.5.26
2016-04-26 03:30:12
Output for 5.5.25
2016-04-28 09:33:05
Output for 5.5.24
2016-05-23 16:28:46
Output for 5.3.18 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/sis0C on line 3
Process exited with code 255.