3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dayAfterTomorrow = (new \DateTime())->add(new \DateInterval('P2D')); echo $dayAfterTomorrow->format('M d');
based on HRvY5
Output for 5.4.10 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
Dec 20
Output for 7.0.6
May 23
Output for 7.0.5
Apr 05
Output for 7.0.4
Mar 12
Output for 7.0.3
Mar 20
Output for 7.0.2
Mar 25
Output for 7.0.1
Mar 26
Output for 7.0.0
Mar 29
Output for 5.6.21
May 04
Output for 5.6.20
Apr 12
Output for 5.6.19
Mar 10
Output for 5.6.18
Mar 17
Output for 5.6.17
Mar 22
Output for 5.6.16
Mar 30
Output for 5.6.15
Mar 31
Output for 5.6.14
Apr 16
Output for 5.6.13
Apr 17
Output for 5.6.12
Apr 22
Output for 5.6.11
Apr 26
Output for 5.6.10
Apr 27
Output for 5.6.9
Apr 29
Output for 5.6.8
May 02
Output for 5.5.35
May 25
Output for 5.5.34
Apr 13
Output for 5.5.33
Mar 11
Output for 5.5.32
Mar 19
Output for 5.5.31
Mar 23
Output for 5.5.30
Apr 03
Output for 5.5.29
Apr 19
Output for 5.5.28
Apr 23
Output for 5.5.27
Apr 24
Output for 5.5.26
Apr 28
Output for 5.5.25
May 01
Output for 5.5.24
May 26
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/K91iF on line 2
Process exited with code 255.