3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime(); array_walk($d, 'var_dump');
Output for 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Output for 7.3.33
string(26) "2015-10-05 15:34:51.001968" string(4) "date" int(3) string(13) "timezone_type" string(3) "UTC" string(8) "timezone"
Output for 7.3.32
string(26) "2015-10-05 15:34:51.002444" string(4) "date" int(3) string(13) "timezone_type" string(3) "UTC" string(8) "timezone"
Output for 7.3.31
string(26) "2015-10-05 17:34:51.003606" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.30
string(26) "2015-10-05 17:34:51.003151" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.29
string(26) "2015-10-05 17:34:51.006854" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.28
string(26) "2015-10-05 17:34:51.008936" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.27
string(26) "2015-10-05 17:34:51.008956" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.26
string(26) "2015-10-05 17:34:51.009188" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.25
string(26) "2015-10-05 17:34:51.009769" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.24
string(26) "2015-10-05 17:34:51.008666" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.23
string(26) "2015-10-05 17:34:51.009121" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.21
string(26) "2015-10-05 17:34:51.008137" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.20
string(26) "2015-10-05 17:34:51.012783" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.19
string(26) "2015-10-05 17:34:51.008320" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.18
string(26) "2015-10-05 17:34:51.004162" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.17
string(26) "2015-10-05 17:34:51.007907" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.3.16
string(26) "2015-10-05 17:34:51.009849" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
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.33
string(26) "2015-10-05 17:34:51.008475" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.32
string(26) "2015-10-05 17:34:51.018592" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.31
string(26) "2015-10-05 17:34:51.011075" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.30
string(26) "2015-10-05 17:34:51.011036" string(4) "date" int(3) string(13) "timezone_type" string(16) "Europe/Amsterdam" string(8) "timezone"
Output for 7.2.29
string(26) "2015-10-05 17:34:51.008528" 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.5.38, 5.6.0 - 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 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"

preferences:
227.52 ms | 402 KiB | 338 Q