3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.11 ms | 1395 KiB | 19 Q