3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(serialize(new DateTime()));
Output for 7.3.1
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000087";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.3.0
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000078";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.13
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000136";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.0, 7.2.12
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000079";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.11
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000082";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.10
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000094";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.9
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000117";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.8
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000092";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.7
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000122";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.6
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000104";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.5
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000132";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.4
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000086";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.2 - 7.2.3
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000105";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.2.1
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000083";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.1.25
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000116";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 7.1.20
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.003143";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-08-08 21:33:10.004158";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-08-08 21:33:10.002815";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-08-08 21:33:10.011818";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-08-08 21:33:10.010657";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-08-08 21:33:10.004053";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.14 - 7.0.20
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"
Output for 5.5.0 - 5.5.13
string(121) "O:8:"DateTime":3:{s:4:"date";s:19:"2016-08-08 21:33:10";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}"