3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "20142311.235504"; $match = array_combine(['year', 'month', 'day', 'hour', 'minute', 'second'], explode('-', (date_create_from_format("Ydm.His", $str))->format('Y-m-d-H-i-s'))); echo '<pre>', print_r($match);

preferences:
26.76 ms | 407 KiB | 5 Q