3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filepath= '../edahidden/phocadownload/userupload/esempio-copia.jpg'; $xmlFile = $filepath; //pathinfo('../edahidden/phocadownload/userupload/esempio-copia.jpg'); function filePathParts($arg1) { echo $arg1['dirname'], "\n"; echo $arg1['basename'], "\n"; echo $arg1['extension'], "\n"; echo $arg1['filename'], "\n"; } filePathParts($xmlFile);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q8PfR
function name:  (null)
number of ops:  6
compiled vars:  !0 = $filepath, !1 = $xmlFile
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '..%2Fedahidden%2Fphocadownload%2Fuserupload%2Fesempio-copia.jpg'
    3     1        ASSIGN                                                   !1, !0
   12     2        INIT_FCALL                                               'filepathparts'
          3        SEND_VAR                                                 !1
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function filepathparts:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q8PfR
function name:  filePathParts
number of ops:  14
compiled vars:  !0 = $arg1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        FETCH_DIM_R                                      ~1      !0, 'dirname'
          2        ECHO                                                     ~1
          3        ECHO                                                     '%0A'
    7     4        FETCH_DIM_R                                      ~2      !0, 'basename'
          5        ECHO                                                     ~2
          6        ECHO                                                     '%0A'
    8     7        FETCH_DIM_R                                      ~3      !0, 'extension'
          8        ECHO                                                     ~3
          9        ECHO                                                     '%0A'
    9    10        FETCH_DIM_R                                      ~4      !0, 'filename'
         11        ECHO                                                     ~4
         12        ECHO                                                     '%0A'
   10    13      > RETURN                                                   null

End of function filepathparts

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.99 ms | 942 KiB | 15 Q