3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTimeImmutable(); $d->modify('+ 10 days'); var_dump($d);
Output for 7.2.11
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.007532" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.10
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.007435" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.9
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.017755" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.8
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.013464" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.7
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.006034" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.6
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.009486" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.5
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.012297" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.4
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.012176" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.3
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.010216" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.2
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.016270" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.1
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.014987" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.0
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.004575" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.23
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.005112" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.22
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.013334" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.21
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.015626" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.20
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.005337" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.19
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.013166" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.18
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.004092" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.17
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.006077" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.16
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.018108" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.15
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.003485" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.14
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.012871" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.13
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.009071" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.12
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.016009" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.11
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.012581" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.10
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.010071" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.9
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.014228" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.8
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.018953" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.7
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.011652" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.6
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.026530" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.5
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.027395" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.4
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.024024" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.38 - 7.0.28, 7.1.3
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.2
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.021415" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.1
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.010041" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2018-10-26 22:17:45.013750" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }