3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (class_exists('DateTimeImmutable')) { echo serialize(new DateTimeImmutable('2015-01-01 00:00:00.123456')); }
based on KSZji
Output for 5.5.24 - 7.2.0
O:17:"DateTimeImmutable":3:{s:4:"date";s:26:"2015-01-01 00:00:00.123456";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Europe/Amsterdam";}
Output for 4.3.0 - 5.4.45