3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fileName = "140908181323-q6nr12vo-8900001-08031970805-byC1.mp3"; echo date('Y-m-d H:i:s', strtotime("20".str_replace("_","",substr($fileName,0,12)))).substr($fileName,13);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OZYl4
function name:  (null)
number of ops:  26
compiled vars:  !0 = $fileName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '140908181323-q6nr12vo-8900001-08031970805-byC1.mp3'
    3     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          3        INIT_FCALL                                               'strtotime'
          4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '_'
          6        SEND_VAL                                                 ''
          7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 12
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                         $3      
         14        CONCAT                                           ~4      '20', $3
         15        SEND_VAL                                                 ~4
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                         $6      
         19        INIT_FCALL                                               'substr'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 13
         22        DO_ICALL                                         $7      
         23        CONCAT                                           ~8      $6, $7
         24        ECHO                                                     ~8
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.56 ms | 1386 KiB | 21 Q