3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime(); var_dump(get_object_vars($d));
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
array(0) { }
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 array(0) { }
Output for 7.3.33
array(3) { ["date"]=> string(26) "2020-03-23 11:02:40.002757" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.3.32
array(3) { ["date"]=> string(26) "2020-03-23 11:02:40.001951" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.3.31
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.003193" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.30
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.003176" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.29
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.007877" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.28
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.011910" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.27
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.013123" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.26
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008968" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.25
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.012553" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.24
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.009152" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.23
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008998" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.21
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008291" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.20
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008453" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.19
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.010859" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.18
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.004008" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.17
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008469" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.2, 7.3.16
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000210" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.8, 7.3.15
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000224" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.13, 7.3.14
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000235" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.13
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000314" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.12
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000317" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.26, 7.3.11
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000222" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.10
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000208" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.9
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000234" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.16, 7.3.7
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000310" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.6
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000223" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.5
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000306" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.4
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000217" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.25, 7.3.3
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000309" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.1
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000229" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.20, 7.3.0
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000219" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.33
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.011413" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.32
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008780" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.31
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.011328" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.30
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008191" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.29
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000338" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.28
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000281" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.27
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000243" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.23 - 7.2.24
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000228" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.12, 7.2.22
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000240" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.10, 7.2.21
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000308" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.19
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000307" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.18
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000215" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.0, 7.2.17
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000230" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.15
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000218" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.14
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000214" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.11
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000472" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.9
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000248" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.8
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000475" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.7
array(3) { ["date"]=> string(26) "2020-03-23 12:02:41.004221" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.6
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000384" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.5
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000227" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.4
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000236" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.3
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000297" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.2
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000313" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.1
array(3) { ["date"]=> string(26) "2020-03-23 12:02:41.000233" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.33
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.006227" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.32
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.004149" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.31
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.007258" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.30
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000232" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.29
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.005913" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.28
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.013038" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.27
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.004263" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.26
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008773" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.25
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.005836" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.24
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.006137" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.23
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.006819" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.22
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.013512" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.21
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.003376" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.20
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.004915" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.19
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.002042" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.18
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008081" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.17
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008597" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.16
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008518" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.15
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008030" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.14
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.016653" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.13
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.011128" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.12
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.005294" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.11
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.008937" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.10
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.011084" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.9
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.004757" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.8
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.003387" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.7
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000276" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.6
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.005654" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.5
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.009502" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.4
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.010734" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.14 - 5.5.38, 5.6.0 - 5.6.39, 7.0.0 - 7.0.2, 7.0.4 - 7.0.33, 7.1.3
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.2
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.007733" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.1
array(3) { ["date"]=> string(26) "2020-03-23 12:02:41.011412" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0
array(3) { ["date"]=> string(26) "2020-03-23 12:02:40.000369" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.40, 7.0.3
array(3) { ["date"]=> string(26) "2020-03-23 12:02:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.0 - 5.5.13
array(3) { ["date"]=> string(19) "2020-03-23 12:02:40" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }

preferences:
242.33 ms | 401 KiB | 333 Q