3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new \DateTime(); $c = clone $d; echo $d->format('c'); echo "\n"; echo $c->modify('+1 day')->format('c');
Output for 5.6.28, 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
2016-01-11T13:37:30+01:00 2016-01-12T13:37:30+01:00
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 2016-01-11T13:37:30+01:00 2016-01-12T13:37:30+01:00
Output for 7.3.32 - 7.3.33, 8.0.13
2016-01-11T12:37:30+00:00 2016-01-12T12:37:30+00:00
Output for 7.0.6
2016-05-21T13:37:15+02:00 2016-05-22T13:37:15+02:00
Output for 7.0.5
2016-04-03T09:36:51+02:00 2016-04-04T09:36:51+02:00
Output for 7.0.4
2016-03-10T21:43:27+01:00 2016-03-11T21:43:27+01:00
Output for 7.0.3
2016-03-18T23:09:41+01:00 2016-03-19T23:09:41+01:00
Output for 7.0.2
2016-03-23T05:22:57+01:00 2016-03-24T05:22:57+01:00
Output for 7.0.1
2016-03-24T08:28:17+01:00 2016-03-25T08:28:17+01:00
Output for 7.0.0
2016-03-27T10:21:32+02:00 2016-03-28T10:21:32+02:00
Output for 5.6.21
2016-05-02T16:30:27+02:00 2016-05-03T16:30:27+02:00
Output for 5.6.20
2016-04-10T08:38:55+02:00 2016-04-11T08:38:55+02:00
Output for 5.6.19
2016-03-08T05:52:30+01:00 2016-03-09T05:52:30+01:00
Output for 5.6.18
2016-03-15T14:50:16+01:00 2016-03-16T14:50:16+01:00
Output for 5.6.17
2016-03-20T02:22:55+01:00 2016-03-21T02:22:55+01:00
Output for 5.6.16
2016-03-28T11:11:07+02:00 2016-03-29T11:11:07+02:00
Output for 5.6.15
2016-03-29T12:00:01+02:00 2016-03-30T12:00:01+02:00
Output for 5.6.14
2016-04-14T17:43:08+02:00 2016-04-15T17:43:08+02:00
Output for 5.6.13
2016-04-15T18:22:09+02:00 2016-04-16T18:22:09+02:00
Output for 5.6.12
2016-04-20T08:51:18+02:00 2016-04-21T08:51:18+02:00
Output for 5.6.11
2016-04-24T15:17:33+02:00 2016-04-25T15:17:33+02:00
Output for 5.6.10
2016-04-25T17:23:18+02:00 2016-04-26T17:23:18+02:00
Output for 5.6.9
2016-04-27T22:49:30+02:00 2016-04-28T22:49:30+02:00
Output for 5.6.8
2016-04-30T07:18:53+02:00 2016-05-01T07:18:53+02:00
Output for 5.5.35
2016-05-23T02:32:20+02:00 2016-05-24T02:32:20+02:00
Output for 5.5.34
2016-04-11T10:52:49+02:00 2016-04-12T10:52:49+02:00
Output for 5.5.33
2016-03-09T08:51:33+01:00 2016-03-10T08:51:33+01:00
Output for 5.5.32
2016-03-17T18:47:34+01:00 2016-03-18T18:47:34+01:00
Output for 5.5.31
2016-03-21T05:33:13+01:00 2016-03-22T05:33:13+01:00
Output for 5.5.30
2016-04-01T13:52:12+02:00 2016-04-02T13:52:12+02:00
Output for 5.5.29
2016-04-17T08:39:44+02:00 2016-04-18T08:39:44+02:00
Output for 5.5.28
2016-04-21T12:10:43+02:00 2016-04-22T12:10:43+02:00
Output for 5.5.27
2016-04-22T13:48:03+02:00 2016-04-23T13:48:03+02:00
Output for 5.5.26
2016-04-26T20:04:47+02:00 2016-04-27T20:04:47+02:00
Output for 5.5.25
2016-04-29T03:30:21+02:00 2016-04-30T03:30:21+02:00
Output for 5.5.24
2016-05-24T09:53:16+02:00 2016-05-25T09:53:16+02:00

preferences:
187.8 ms | 405 KiB | 229 Q