3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=62476 for ($d=55; $d<65; $d++) { $dt = DateTime::createFromFormat ('Y.z', "2012.$d"); $dd = $dt->format ('d.m.Y'); echo "$d $dd\n"; }
Output for 7.0.14, 7.2.5, 7.3.0 - 7.3.33, 7.4.0 - 7.4.30, 8.0.0 - 8.0.22, 8.1.0 - 8.1.9
55 25.02.2012 56 26.02.2012 57 27.02.2012 58 28.02.2012 59 29.02.2012 60 01.03.2012 61 02.03.2012 62 03.03.2012 63 04.03.2012 64 05.03.2012

preferences:
58.32 ms | 410 KiB | 5 Q