3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTimeImmutable(); $d2 = $d->setDate(1980, 10, 29); print $d2->format('c');
based on c8pWS
Output for 7.0.20 - 7.2.0
1980-10-29T23:01:59+01:00
Output for 7.0.6
1980-10-29T18:53:42+01:00
Output for 7.0.5
1980-10-29T07:17:51+01:00
Output for 7.0.4
1980-10-29T19:07:11+01:00
Output for 7.0.3
1980-10-29T20:19:32+01:00
Output for 7.0.2
1980-10-29T02:26:56+01:00
Output for 7.0.1
1980-10-29T06:00:51+01:00
Output for 7.0.0
1980-10-29T07:56:33+01:00
Output for 5.6.21
1980-10-29T14:02:31+01:00
Output for 5.6.20
1980-10-29T06:17:19+01:00
Output for 5.6.19
1980-10-29T03:18:09+01:00
Output for 5.6.18
1980-10-29T12:04:46+01:00
Output for 5.6.17
1980-10-29T23:41:10+01:00
Output for 5.6.16
1980-10-29T08:43:55+01:00
Output for 5.6.15
1980-10-29T09:34:28+01:00
Output for 5.6.14
1980-10-29T11:24:21+01:00
Output for 5.6.13
1980-10-29T15:52:22+01:00
Output for 5.6.12
1980-10-29T06:20:23+01:00
Output for 5.6.11
1980-10-29T12:43:43+01:00
Output for 5.6.10
1980-10-29T14:45:53+01:00
Output for 5.6.9
1980-10-29T19:55:48+01:00
Output for 5.6.8
1980-10-29T04:48:47+01:00
Output for 5.5.35
1980-10-29T22:03:11+01:00
Output for 5.5.34
1980-10-29T08:28:48+01:00
Output for 5.5.33
1980-10-29T06:04:49+01:00
Output for 5.5.32
1980-10-29T15:56:49+01:00
Output for 5.5.31
1980-10-29T02:44:31+01:00
Output for 5.5.30
1980-10-29T11:28:17+01:00
Output for 5.5.29
1980-10-29T06:13:51+01:00
Output for 5.5.28
1980-10-29T09:34:43+01:00
Output for 5.5.27
1980-10-29T11:20:13+01:00
Output for 5.5.26
1980-10-29T17:28:57+01:00
Output for 5.5.25
1980-10-29T00:25:18+01:00
Output for 5.5.24
1980-10-29T16:26:54+01:00
Output for 5.3.19 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/lVVOI on line 3
Process exited with code 255.