3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); array_walk($d, 'var_dump');
based on UPItE
Output for 7.3.1
string(26) "2015-10-05 17:34:51.000118" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.8, 7.3.0
string(26) "2015-10-05 17:34:51.000095" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.13
string(26) "2015-10-05 17:34:51.035794" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.6, 7.2.12
string(26) "2015-10-05 17:34:51.000078" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.21, 7.2.11
string(26) "2015-10-05 17:34:51.000098" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.10
string(26) "2015-10-05 17:34:51.007015" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.9
string(26) "2015-10-05 17:34:51.000073" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.8
string(26) "2015-10-05 17:34:51.000093" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.7
string(26) "2015-10-05 17:34:51.000273" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.5
string(26) "2015-10-05 17:34:51.000808" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.4
string(26) "2015-10-05 17:34:51.000077" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.3
string(26) "2015-10-05 17:34:51.000097" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.5, 7.2.2
string(26) "2015-10-05 17:34:51.000096" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.1
string(26) "2015-10-05 17:34:51.000144" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.0
string(26) "2015-10-05 17:34:51.000104" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.25
string(26) "2015-10-05 17:34:51.000108" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.14, 7.1.24
string(26) "2015-10-05 17:34:51.000090" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.23
string(26) "2015-10-05 17:34:51.000122" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.19, 7.1.22
string(26) "2015-10-05 17:34:51.000088" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.20
string(26) "2015-10-05 17:34:51.000089" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.18
string(26) "2015-10-05 17:34:51.000092" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.1, 7.1.17
string(26) "2015-10-05 17:34:51.000094" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.15 - 7.1.16
string(26) "2015-10-05 17:34:51.000086" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.13
string(26) "2015-10-05 17:34:51.000111" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.12
string(26) "2015-10-05 17:34:51.000121" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.7, 7.1.11
string(26) "2015-10-05 17:34:51.000081" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.10
string(26) "2015-10-05 17:34:51.000091" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.9
string(26) "2015-10-05 17:34:51.000082" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.6
string(26) "2015-10-05 17:34:51.000075" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.4
string(26) "2015-10-05 17:34:51.000130" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.4.30 - 5.4.45, 5.5.14 - 5.6.38, 7.0.0 - 7.0.32, 7.1.3
string(26) "2015-10-05 17:34:51.000000" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.2
string(26) "2015-10-05 17:34:51.000119" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.1.0
string(26) "2015-10-05 17:34:51.000139" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for hhvm-3.22.0
Warning: Invalid operand type was used: array_walk expects array(s) in /in/Lmpv9 on line -1
Output for hhvm-3.10.1 - 3.21.3
Warning: Invalid operand type was used: array_walk expects array(s) in /in/Lmpv9 on line 4
Output for 5.4.0 - 5.4.29, 5.5.0 - 5.5.13
string(19) "2015-10-05 17:34:51" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.29
string(19) "2015-10-31 05:32:22" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.28
string(19) "2015-10-31 07:40:20" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.27
string(19) "2015-10-31 09:48:43" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.26
string(19) "2015-11-02 08:45:06" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.25
string(19) "2015-11-02 10:27:46" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.24
string(19) "2015-11-02 11:44:54" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.23
string(19) "2015-11-02 13:10:22" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.22
string(19) "2015-11-02 14:41:14" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.21
string(19) "2015-11-02 15:52:49" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.20
string(19) "2015-11-02 16:50:52" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.19
string(19) "2015-11-02 18:18:23" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 5.3.18
string(19) "2015-11-02 19:09:07" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"