3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new DateTime('now +1 weekday'));
Output for 8.3.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.008719" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.3.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.010586" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.3.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.007238" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.3.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.007021" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.3.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003685" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.3.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003860" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.3.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003626" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.18
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.008855" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.17
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.010149" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.16
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.008095" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.004096" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003724" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.004103" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003766" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.004121" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.005353" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003757" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003778" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.004091" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003775" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003935" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.004507" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003574" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003822" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003744" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003567" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.28
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.006527" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.17, 8.1.27
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003638" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.26
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003641" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.25
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003455" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.24
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.004391" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.23
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.006380" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.22
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003676" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.21
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.004053" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003994" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.19
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003649" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.18
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003864" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.16
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003717" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003544" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003868" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003261" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003504" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003456" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003715" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003490" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003753" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003865" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003706" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003769" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003807" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003621" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003927" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003578" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.1.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003590" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.30
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003413" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.29
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003454" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.28
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003259" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.27
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003270" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.26
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003121" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.25
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003287" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.24
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003745" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.23
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.005078" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.22
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003764" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.21
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003404" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003031" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.19
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003527" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.18
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003630" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.17
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003891" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.16
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003306" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003673" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003767" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 17:09:05.002022" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 8.0.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003750" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003741" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 18:09:05.003475" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.14 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.32 - 7.3.33
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-04 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.0 - 5.5.13
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-04 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }

preferences:
224.5 ms | 402 KiB | 238 Q