3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = new DateTime; //var_dump($test->__sleep()); var_dump(serialize($test));
based on 1BJDO
Output for 7.2.0
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:40.004132";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.1.10
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:40.002814";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.1.7
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:40.002681";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.1.6
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:40.013318";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.1.5
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:40.006690";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.1.0
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:40.004048";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.28, 7.0.20
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:40.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.0.6
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-05-21 13:23:13.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.0.5
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-03 09:25:06.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.0.4
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-10 21:31:36.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.0.3
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-18 22:55:41.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.0.2
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-23 05:08:55.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.0.1
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-24 08:16:01.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.0.0
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-27 10:09:20.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.21
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-05-02 16:18:11.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.20
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-10 08:26:59.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.19
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-08 05:39:50.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.18
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-15 14:36:56.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.17
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-20 02:09:14.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.16
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-28 10:58:36.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.15
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-29 11:47:54.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.14
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-14 17:30:24.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.13
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-15 18:09:30.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.12
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-20 08:38:28.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.11
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-24 15:04:38.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.10
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-25 17:10:29.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.9
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-27 22:36:28.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.6.8
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-30 07:06:36.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.35
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-05-23 02:17:02.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.34
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-11 10:40:50.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.33
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-09 08:38:40.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.32
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-17 18:33:33.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.31
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-03-21 05:18:07.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.30
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-01 13:40:00.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.29
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-17 08:27:19.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.28
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-21 11:57:01.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.27
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-22 13:35:36.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.26
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-26 19:51:08.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.25
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-04-29 03:16:47.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.24
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-05-24 09:40:08.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.45
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:43.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.44
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:44.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.41 - 5.4.43
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:46.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.40
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:47.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.39
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:48.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.36 - 5.4.38
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:49.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.34 - 5.4.35
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:50.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.31 - 5.4.32
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:51.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.30
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-01-05 22:52:52.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.27 - 5.4.29
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2016-01-05 22:52:52";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.25 - 5.4.26
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2016-01-05 22:52:53";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.3.28, 5.4.21 - 5.4.24
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2016-01-05 22:52:54";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.4.18 - 5.4.20
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2016-01-05 22:52:55";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.3.24 - 5.3.27, 5.4.14 - 5.4.17
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2016-01-05 22:52:56";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.3.21 - 5.3.23, 5.4.11 - 5.4.13
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2016-01-05 22:52:57";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.3.29
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2016-01-05 22:52:51";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"