3v4l.org

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