3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new DateTimeImmutable('-3 minutes'));
Output for 8.0.8
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.008528" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.7
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007508" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.6
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.016989" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.5
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.011685" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.3
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.013495" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.2
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.016921" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.1
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.020515" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.0
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007281" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.21
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.028260" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.20
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.021470" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.19
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.006817" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.18
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007036" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.16
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.006820" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.15
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.009562" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.14
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.010916" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.13
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.012166" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.12
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.010892" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.11
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.006921" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.10
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.006766" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.9
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007071" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.8
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007248" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.7
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007219" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.6
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.010446" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.5
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.009877" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.4
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.011277" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.3
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.009503" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.2
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.010275" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.1
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.010272" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.0
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.006481" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.29
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.006995" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.28
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007103" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.27
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.010557" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.26
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.012204" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.25
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.014661" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.24
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.018619" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.23
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.014384" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.22
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.012489" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.21
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.012016" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.20
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.013157" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.19
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.015714" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.18
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.012731" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.17
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.009267" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.16
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.024397" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.15
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.014234" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.14
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.026578" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.13
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.014104" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.12
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007533" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.11
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007648" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.10
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007024" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.9
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.010146" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.8
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.009540" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.7
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.010370" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.6
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.012236" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.5
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007394" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.4
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.009985" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.3
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.010282" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.2
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.037366" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.1
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.007262" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.0
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2021-07-22 10:45:45.008442" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }

preferences:
293.64 ms | 546 KiB | 5 Q