3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fileName = "140908_181323-q6nr12vo-8900001-08031970805-byC1.mp3"; echo date('Y/m/d h:i:s', strtotime(substr($file_name,0,12))).substr($file_name,13);
based on shKDK
Output for 5.1.2 - 7.1.0
Notice: Undefined variable: file_name in /in/cHhrO on line 3 Notice: Undefined variable: file_name in /in/cHhrO on line 3 1970/01/01 01:00:00
Output for 5.1.0 - 5.1.1
Notice: Undefined variable: file_name in /in/cHhrO on line 3 Notice: Undefined variable: file_name in /in/cHhrO on line 3 2014/09/12 10:55:49
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: file_name in /in/cHhrO on line 3 Warning: strtotime(): Called with an empty time parameter. in /in/cHhrO on line 3 Notice: Undefined variable: file_name in /in/cHhrO on line 3 1970/01/01 12:59:59
Output for 5.0.1 - 5.0.3
Notice: Undefined variable: file_name in /in/cHhrO on line 3 Warning: strtotime(): Called with an empty time parameter. in /in/cHhrO on line 3 Notice: Undefined variable: file_name in /in/cHhrO on line 3 1970/01/01 12:59:59
Output for 4.3.2 - 5.0.0
Notice: Undefined variable: file_name in /in/cHhrO on line 3 Notice: strtotime(): Called with empty time parameter in /in/cHhrO on line 3 Notice: Undefined variable: file_name in /in/cHhrO on line 3 2014/09/12 12:00:00
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: file_name in /in/cHhrO on line 3 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/cHhrO on line 3 Notice: Undefined variable: file_name in /in/cHhrO on line 3 2014/09/12 12:00:00