3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = '/vawr/wawawaW/Media/EN_7000_05016.PDF'; $filenamePart = pathinfo($filename, PATHINFO_DIRNAME); if ($filenamePart) { $filenamePart .= '/'; } $filenamePart .= pathinfo($filename, PATHINFO_FILENAME); if(pathinfo($filename, PATHINFO_EXTENSION)){ $filenamePart .= '.' . strtolower(pathinfo($filename, PATHINFO_EXTENSION)); } echo $filenamePart;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 27
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 8
filename:       /in/Hf4QB
function name:  (null)
number of ops:  29
compiled vars:  !0 = $filename, !1 = $filenamePart
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Fvawr%2FwawawaW%2FMedia%2FEN_7000_05016.PDF'
    6     1        INIT_FCALL                                               'pathinfo'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    7     6      > JMPZ                                                     !1, ->8
    8     7    >   ASSIGN_OP                                     8          !1, '%2F'
   10     8    >   INIT_FCALL                                               'pathinfo'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 8
         11        DO_ICALL                                         $6      
         12        ASSIGN_OP                                     8          !1, $6
   11    13        INIT_FCALL                                               'pathinfo'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 4
         16        DO_ICALL                                         $8      
         17      > JMPZ                                                     $8, ->27
   12    18    >   INIT_FCALL                                               'strtolower'
         19        INIT_FCALL                                               'pathinfo'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 4
         22        DO_ICALL                                         $9      
         23        SEND_VAR                                                 $9
         24        DO_ICALL                                         $10     
         25        CONCAT                                           ~11     '.', $10
         26        ASSIGN_OP                                     8          !1, ~11
   14    27    >   ECHO                                                     !1
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.78 ms | 1395 KiB | 17 Q