3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dayAfterTomorrow = (new \DateTime())->add(new \DateInterval('P2D')); echo $dayAfterTomorrow->format('d-m-Y');
based on Y3llk
Output for 5.5.0 - 5.5.23, 5.5.36 - 5.6.7, 5.6.22 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.7 - 7.0.19, 7.1.1 - 7.1.4, 7.1.8 - 7.2.6
09-08-2017
Output for 5.4.11 - 5.4.45, 7.0.20 - 7.1.0, 7.1.5 - 7.1.7
10-01-2016
Output for 7.0.6
23-05-2016
Output for 7.0.5
05-04-2016
Output for 7.0.4
12-03-2016
Output for 7.0.3
20-03-2016
Output for 7.0.2
25-03-2016
Output for 7.0.1
26-03-2016
Output for 7.0.0
29-03-2016
Output for 5.6.21
04-05-2016
Output for 5.6.20
12-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.14
16-04-2016
Output for 5.6.13
17-04-2016
Output for 5.6.12
22-04-2016
Output for 5.6.11
26-04-2016
Output for 5.6.10
27-04-2016
Output for 5.6.9
29-04-2016
Output for 5.6.8
02-05-2016
Output for 5.5.35
25-05-2016
Output for 5.5.34
13-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
03-04-2016
Output for 5.5.29
19-04-2016
Output for 5.5.28
23-04-2016
Output for 5.5.27
24-04-2016
Output for 5.5.26
28-04-2016
Output for 5.5.25
01-05-2016
Output for 5.5.24
26-05-2016
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/VEFpE on line 2
Process exited with code 255.