3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fileName = "140908181323-q6nr12vo-8900001-08031970805-byC1.mp3"; $downloadFile["file_name"] = $fileName; $downloadFile["view_fileName"] = date('Y-m-d H:i:s', strtotime("20".str_replace("_","",substr($downloadFile["file_name"],0,12)))).substr($downloadFile["file_name"],13); echo $downloadFile["view_fileName"];
based on OZYl4
Output for 5.1.0 - 7.2.0
2014-09-08 18:13:23q6nr12vo-8900001-08031970805-byC1.mp3
Output for 4.3.0 - 5.0.5
180653-05-18 00:00:00q6nr12vo-8900001-08031970805-byC1.mp3