3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(); var_dump($now);

Abusive script

This script was stopped while abusing our resources

Output for 7.4.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000214" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000161" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000615" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000201" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000228" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000126" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.16, 7.3.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000170" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.20, 7.3.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000212" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000209" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000285" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000265" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000243" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.24, 7.3.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000197" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000165" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000079" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:03.000221" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.26
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000158" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.25
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000212" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.23
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000259" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.0, 7.2.22
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000180" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.21
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000218" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.12, 7.2.19
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000173" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.18
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000147" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.17
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000250" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000167" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000219" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000118" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000153" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.21, 7.2.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000149" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.17 - 7.1.20, 7.2.4 - 7.2.5, 7.2.7 - 7.2.9

Process exited with code 137.
Output for 7.2.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:03.000123" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000125" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000142" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000219" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.33
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000211" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000200" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.31
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000172" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.30
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000241" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.29
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000195" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.28
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000182" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.27
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000310" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.26
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000181" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.25
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000110" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.24
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000123" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.23
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:03.000125" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.22
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000188" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.16
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:03.000162" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:03.000203" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000297" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000215" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000124" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000104" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000166" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000183" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:03.000200" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:03.000226" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:03.000166" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000161" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000279" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.2, 5.6.9, 7.1.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:03.000179" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000154" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:02.000191" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.30 - 5.4.45, 5.5.14 - 5.5.38, 5.6.0 - 5.6.1, 5.6.3 - 5.6.8, 5.6.10 - 5.6.38, 7.0.0 - 7.0.33
object(DateTime)#1 (3) { ["date"]=> string(26) "2019-01-28 12:07:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.0 - 5.3.14, 5.3.16 - 5.3.29, 5.4.0 - 5.4.16, 5.4.18 - 5.4.29, 5.5.0 - 5.5.9, 5.5.11 - 5.5.13
object(DateTime)#1 (3) { ["date"]=> string(19) "2019-01-28 12:07:01" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.15, 5.4.17, 5.5.10
object(DateTime)#1 (3) { ["date"]=> string(19) "2019-01-28 12:07:02" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }

preferences:
218.18 ms | 402 KiB | 270 Q