3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path= "WEB/WEB-INF/classes/testfile.java"; $elementrTokens = explode ('/', $path); $outputArray = array_reverse($elementrTokens); while(count($elementrTokens) > 0){ $folderText =array_pop ($outputArray); if($folderText!=basename($path)){ echo "<a href=\"\">$folderText</a>\n"; } else{ echo "$folderText\n"; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 11
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 11
Branch analysis from position: 31
Branch analysis from position: 11
filename:       /in/Jp2WF
function name:  (null)
number of ops:  32
compiled vars:  !0 = $path, !1 = $elementrTokens, !2 = $outputArray, !3 = $folderText
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'WEB%2FWEB-INF%2Fclasses%2Ftestfile.java'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        INIT_FCALL                                               'array_reverse'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    7    10      > JMP                                                      ->28
    8    11    >   INIT_FCALL                                               'array_pop'
         12        SEND_REF                                                 !2
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !3, $9
    9    15        INIT_FCALL                                               'basename'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $11     
         18        IS_NOT_EQUAL                                             !3, $11
         19      > JMPZ                                                     ~12, ->25
   10    20    >   ROPE_INIT                                     3  ~14     '%3Ca+href%3D%22%22%3E'
         21        ROPE_ADD                                      1  ~14     ~14, !3
         22        ROPE_END                                      2  ~13     ~14, '%3C%2Fa%3E%0A'
         23        ECHO                                                     ~13
         24      > JMP                                                      ->28
   13    25    >   NOP                                                      
         26        FAST_CONCAT                                      ~16     !3, '%0A'
         27        ECHO                                                     ~16
    7    28    >   COUNT                                            ~17     !1
         29        IS_SMALLER                                               0, ~17
         30      > JMPNZ                                                    ~18, ->11
   17    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.16 ms | 1396 KiB | 21 Q