3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dayAfterTomorrow = (new \DateTime())->add(new \DateInterval('P2D')); echo $dayAfterTomorrow->format('d m Y H:i');
Output for 5.6.28, 7.0.12 - 7.1.0
13 03 2015 13:50
Output for 7.0.6
05 05 2016 01:02
Output for 7.0.5
04 04 2016 14:23
Output for 7.0.4
11 03 2016 23:23
Output for 7.0.3
19 03 2016 23:47
Output for 7.0.2
23 03 2016 10:29
Output for 7.0.1
25 03 2016 10:11
Output for 7.0.0
28 03 2016 13:11
Output for hhvm-3.12.0
13 03 2016 03:13
Output for hhvm-3.10.0
31 03 2016 17:39
Output for 5.6.21
03 05 2016 20:07
Output for 5.6.20
11 04 2016 09:38
Output for 5.6.19
08 03 2016 20:54
Output for 5.6.18
16 03 2016 09:19
Output for 5.6.17
21 03 2016 04:23
Output for 5.6.16
29 03 2016 14:56
Output for 5.6.15
30 03 2016 15:55
Output for 5.6.14
03 04 2016 18:38
Output for 5.6.13
16 04 2016 22:30
Output for 5.6.12
21 04 2016 11:34
Output for 5.6.11
24 04 2016 18:52
Output for 5.6.10
26 04 2016 20:31
Output for 5.6.9
29 04 2016 01:36
Output for 5.6.8
01 05 2016 09:10
Output for 5.6.7
26 05 2016 19:06
Output for 5.5.35
23 05 2016 23:11
Output for 5.5.34
12 04 2016 15:29
Output for 5.5.33
10 03 2016 10:37
Output for 5.5.32
17 03 2016 19:36
Output for 5.5.31
22 03 2016 07:17
Output for 5.5.30
02 04 2016 17:59
Output for 5.5.29
18 04 2016 12:33
Output for 5.5.28
22 04 2016 14:45
Output for 5.5.27
23 04 2016 17:23
Output for 5.5.26
27 04 2016 22:46
Output for 5.5.25
30 04 2016 04:53
Output for 5.5.24
02 05 2016 12:30
Output for 5.4.41 - 5.4.45
20 02 2016 13:23
Output for 5.4.0 - 5.4.40
20 02 2016 13:24
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/eFkHD on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/eFkHD on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/eFkHD on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/eFkHD on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/eFkHD on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/eFkHD on line 2 Parse error: parse error in /in/eFkHD on line 2
Process exited with code 255.