3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "20142311.235504"; preg_match('~^(?<year>\d{4})(?<day>\d{2})(?<month>\d{2}).(?<hour>\d{2})(?<minute>\d{2})(?<second>\d{2})$~', $str, $match); echo '<pre>', print_r($match);

preferences:
171.02 ms | 405 KiB | 5 Q