3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh // Source: https://bugs.php.net/bug.php?id=62476 for ($d=55; $d<65; $d++) { $dt = DateTime::createFromFormat ('z.Y', $d.'.2012'); $dd = $dt->format ('d.m.Y'); echo "$d $dd\n"; }
Output for 5.3.0 - 5.4.32
<?hh // Source: https://bugs.php.net/bug.php?id=62476 for ($d=55; $d<65; $d++) { $dt = DateTime::createFromFormat ('z.Y', $d.'.2012'); $dd = $dt->format ('d.m.Y'); echo "$d $dd\n"; }