3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime(); var_dump((array) $d);
Output for 8.0.3
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008344" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.2
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.009410" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.0
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.011412" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.13
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008767" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.12
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008397" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.11
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.009175" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.10
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008556" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.9
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008600" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.8
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008915" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.7
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.013593" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.6
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000238" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.5
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.003278" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.4
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000214" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.3
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000204" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.2
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000271" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.1
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000242" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.0
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000249" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.26
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.010910" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.24
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.012777" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.23
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.013282" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.21
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008616" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.20
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008940" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.19
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008374" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.18
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.004193" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.17
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.011573" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.16
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000223" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.15
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000346" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.14
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000244" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.13
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000343" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.12
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.007008" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.11
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.005972" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.10
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.004751" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.9
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.014411" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.8
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000195" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.7
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.003119" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.6
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.009521" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.5
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000209" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.4
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.004750" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.0, 7.3.3
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000220" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.2
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.010291" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.1
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000229" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.0
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008376" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.33
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008989" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.32
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008463" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.31
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.009507" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.30
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008487" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.29
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000302" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.28
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000394" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.27
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000227" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.26
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.007992" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.25
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.029975" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.24
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000314" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.23
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.003486" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.22
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000427" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.21
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.004876" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.20
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.003713" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.19
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.005685" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.18
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.006632" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.17
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.000351" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.16
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.006705" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.15
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.003384" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.14
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.004312" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.13
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.006507" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.12
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.008262" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.11
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.004238" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.10
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.007822" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.9
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.002755" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.8
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.003037" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.7
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.006272" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.6
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.004125" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.5
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.004112" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.4
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.005493" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.3
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.002408" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.2
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.004669" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.1
array(3) { ["date"]=> string(26) "2020-03-23 12:51:19.003930" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }