3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (class_exists('DateTimeImmutable')) { $d = new DateTimeImmutable('2012-02-01 00:00:00.123456'); $d = $d->setTimeZone(new DateTimeZone('UTC')); echo $d->format('u'); }
based on VRRMG
Output for 5.5.24 - 7.2.0
123456
Output for 4.3.0 - 5.4.45