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(substr($fileName,0,11))).substr($fileName,12);
based on WcRiC
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1970-01-01 01:00:00-q6nr12vo-8900001-08031970805-byC1.mp3
Output for 4.3.0 - 5.0.5
120596-03-15 12:00:00-q6nr12vo-8900001-08031970805-byC1.mp3