3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.51 ms | 1388 KiB | 19 Q