3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fileName = "140908181323-q6nr12vo-8900001-08031970805-byC1.mp3"; echo date('Y-m-d H:i:s', strtotime(str_replace("_","",substr($fileName,0,12)))).substr($fileName,13);
based on 5f947
Output for 5.2.6 - 7.1.0
1409-08-18 13:23:00q6nr12vo-8900001-08031970805-byC1.mp3
Output for 5.1.0 - 5.2.5
1970-01-01 01:00:00q6nr12vo-8900001-08031970805-byC1.mp3
Output for 4.3.0 - 5.0.5
1970-01-01 00:59:59q6nr12vo-8900001-08031970805-byC1.mp3