3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170 ms | 1396 KiB | 21 Q