3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(serialize(new DateTime()));
Output for 7.2.0
string(128) "O:8:"DateTime":3:{s:4:"date";s:26:"2016-08-08 21:33:10.004954";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";}"