3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = 'd.m.Y H:i:s D l S z F M n y H u e T'; $value = '13.08.2015 17:08:23 Thu Thursday th 224 August Aug 8 15 17 432563 UTC UTC'; $dateTime = \DateTime::createFromFormat($format, $value); echo $dateTime->getTimestamp() . "\n"; echo $dateTime->format($format);
Output for 5.6.0 - 5.6.27, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.24, 8.3.0 - 8.3.12
1439485703 13.08.2015 17:08:23 Thu Thursday th 224 August Aug 8 15 17 432563 UTC UTC

preferences:
81.86 ms | 408 KiB | 5 Q