3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $timestamp = serialize(new \DateTime()); var_dump($timestamp); var_dump(unserialize($timestamp));
based on OSfr4
Output for 7.2.0
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:29.004854";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:29.004854" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.10
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:29.003626";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:29.003626" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.7
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:29.003154";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:29.003154" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.6
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:29.012666";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:29.012666" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.5
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:29.005303";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:29.005303" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:29.003955";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:29.003955" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.28, 7.0.20
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:29.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.6
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-05-03 18:43:37.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 18:43:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.5
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-03 07:08:17.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-03 07:08:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.4
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-10 18:55:50.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 18:55:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.3
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-18 20:08:08.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 20:08:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.2
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-23 02:14:50.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 02:14:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.1
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-24 05:50:56.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-24 05:50:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.0
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-27 07:46:50.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 07:46:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.21
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-05-02 13:52:29.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 13:52:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.20
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-10 06:07:33.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 06:07:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.19
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-08 03:07:52.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 03:07:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.18
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-15 11:52:16.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-15 11:52:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.17
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-19 23:30:38.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 23:30:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.16
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-28 08:33:59.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 08:33:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.15
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-29 09:24:48.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-29 09:24:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.14
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-02 11:15:07.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 11:15:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.13
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-15 15:41:15.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 15:41:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.12
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-20 06:09:59.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 06:09:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.11
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-24 12:33:10.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 12:33:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.10
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-25 14:35:34.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 14:35:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.9
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-27 19:45:25.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 19:45:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.8
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-30 04:37:17.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 04:37:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.35
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-05-22 21:29:40.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-22 21:29:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.34
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-11 08:19:11.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-11 08:19:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.33
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-09 05:52:48.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-09 05:52:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.32
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-17 15:47:01.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-17 15:47:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.31
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-21 02:33:18.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 02:33:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.30
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-01 11:18:31.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 11:18:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.29
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-17 06:03:47.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-17 06:03:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.28
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-21 09:24:14.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 09:24:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.27
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-22 11:10:06.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 11:10:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.26
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-26 17:18:24.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 17:18:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.25
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-29 00:14:19.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 00:14:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.24
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-05-24 06:43:10.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 06:43:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.44 - 5.4.45
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:31.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.42 - 5.4.43
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:32.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.40 - 5.4.41
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:33.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.36 - 5.4.39
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:34.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.32 - 5.4.35
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:35.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.30 - 5.4.31
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2015-11-12 11:30:36.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(26) "2015-11-12 11:30:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.29, 5.4.27 - 5.4.29
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2015-11-12 11:30:36";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 11:30:36" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.28, 5.4.22 - 5.4.26
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2015-11-12 11:30:37";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 11:30:37" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.27, 5.4.17 - 5.4.21
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2015-11-12 11:30:38";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 11:30:38" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.20 - 5.3.26, 5.4.11 - 5.4.16
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2015-11-12 11:30:39";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 11:30:39" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.19, 5.4.9 - 5.4.10
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2015-11-12 11:30:40";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}" object(DateTime)#1 (3) { ["date"]=> string(19) "2015-11-12 11:30:40" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }