3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path= "WEB/WEB-INF/classes"; $elementrTokens = explode ('/', $path); if(count($elementrTokens) > 0){ $folderText =array_pop ($elementrTokens); echo "<a href=\"\">$folderText</a>"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/Gej29
function name:  (null)
number of ops:  18
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'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    7     6        COUNT                                            ~6      !1
          7        IS_SMALLER                                               0, ~6
          8      > JMPZ                                                     ~7, ->17
    8     9    >   INIT_FCALL                                               'array_pop'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    9    13        ROPE_INIT                                     3  ~11     '%3Ca+href%3D%22%22%3E'
         14        ROPE_ADD                                      1  ~11     ~11, !2
         15        ROPE_END                                      2  ~10     ~11, '%3C%2Fa%3E'
         16        ECHO                                                     ~10
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.3 ms | 1395 KiB | 17 Q