3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dayAfterTomorrow = (new \DateTime('tomorrow + 2day')); echo $dayAfterTomorrow->format('d m Y H i s');
based on 6IJRL
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.31, 5.6.28, 7.0.14 - 7.1.0
24 08 2014 00 00 00
Output for 7.0.6
06 05 2016 00 00 00
Output for 5.6.14, 7.0.5
05 04 2016 00 00 00
Output for 7.0.4
13 03 2016 00 00 00
Output for 7.0.3
21 03 2016 00 00 00
Output for 7.0.2
25 03 2016 00 00 00
Output for 7.0.1
26 03 2016 00 00 00
Output for 7.0.0
29 03 2016 00 00 00
Output for 5.6.21
05 05 2016 00 00 00
Output for 5.6.20
12 04 2016 00 00 00
Output for 5.6.19
10 03 2016 00 00 00
Output for 5.6.18
18 03 2016 00 00 00
Output for 5.6.17
22 03 2016 00 00 00
Output for 5.6.16
30 03 2016 00 00 00
Output for 5.6.15
01 04 2016 00 00 00
Output for 5.6.13
18 04 2016 00 00 00
Output for 5.6.12
22 04 2016 00 00 00
Output for 5.6.11
26 04 2016 00 00 00
Output for 5.6.10
28 04 2016 00 00 00
Output for 5.6.9
30 04 2016 00 00 00
Output for 5.6.8
02 05 2016 00 00 00
Output for 5.5.35
25 05 2016 00 00 00
Output for 5.5.34
13 04 2016 00 00 00
Output for 5.5.33
11 03 2016 00 00 00
Output for 5.5.32
20 03 2016 00 00 00
Output for 5.5.31
23 03 2016 00 00 00
Output for 5.5.30
04 04 2016 00 00 00
Output for 5.5.29
19 04 2016 00 00 00
Output for 5.5.28
23 04 2016 00 00 00
Output for 5.5.27
25 04 2016 00 00 00
Output for 5.5.26
29 04 2016 00 00 00
Output for 5.5.25
01 05 2016 00 00 00
Output for 5.5.24
26 05 2016 00 00 00
Output for 5.4.39 - 5.4.45
24 09 2015 00 00 00
Output for 5.4.34 - 5.4.38
08 03 2015 00 00 00
Output for 5.3.29, 5.4.32
31 08 2014 00 00 00
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/3o49O on line 2 24 08 2014 00 00 00
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/3o49O on line 2 Fatal error: Class 'DateTime' not found in /in/3o49O on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/3o49O on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/3o49O on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/3o49O on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/3o49O on line 2