3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dayAfterTomorrow = (new \DateTime('tomorrow + 2day')); echo $dayAfterTomorrow->format('d m Y');
based on 4r9XW
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
Output for 7.0.6
24 05 2016
Output for 5.6.14, 7.0.5
17 04 2016
Output for 7.0.4
13 03 2016
Output for 7.0.3
21 03 2016
Output for 7.0.2
24 03 2016
Output for 7.0.1
26 03 2016
Output for 7.0.0
29 03 2016
Output for 5.6.21
05 05 2016
Output for 5.6.20
13 04 2016
Output for 5.6.19
10 03 2016
Output for 5.6.18
17 03 2016
Output for 5.6.17
22 03 2016
Output for 5.6.16
30 03 2016
Output for 5.6.15
31 03 2016
Output for 5.6.13
18 04 2016
Output for 5.6.12
23 04 2016
Output for 5.6.11
27 04 2016
Output for 5.6.10
28 04 2016
Output for 5.6.9
01 05 2016
Output for 5.6.8
03 05 2016
Output for 5.5.35
26 05 2016
Output for 5.5.34
14 04 2016
Output for 5.5.33
11 03 2016
Output for 5.5.32
19 03 2016
Output for 5.5.31
23 03 2016
Output for 5.5.30
04 04 2016
Output for 5.5.29
20 04 2016
Output for 5.5.28
24 04 2016
Output for 5.5.27
25 04 2016
Output for 5.5.26
29 04 2016
Output for 5.5.25
02 05 2016
Output for 5.5.24
27 05 2016
Output for 5.4.39 - 5.4.45
24 09 2015
Output for 5.4.34 - 5.4.38
08 03 2015
Output for 5.3.29, 5.4.32
31 08 2014
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/6IJRL on line 2 24 08 2014
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/6IJRL on line 2 Fatal error: Class 'DateTime' not found in /in/6IJRL 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/6IJRL on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/6IJRL 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/6IJRL on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/6IJRL on line 2