3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Positive numbers: $res5[0][0]="tag1,tag10,tag11,tag13,tag15,tag17,tag19,tag20,tag4,tag9,tag8,tag7,tag6,tag5,tag3,tag2,tag18,tag16,tag14,tag12"; if (strpos($res5[0][0], 'tag') !== false) { $str1=substr($res5[0][0],0,3); $str2=preg_replace("/tag/","",substr($res5[0][0],3)); echo $str1.$str2; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 33
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/skMGV
function name:  (null)
number of ops:  34
compiled vars:  !0 = $res5, !1 = $str1, !2 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $3      !0, 0
          1        ASSIGN_DIM                                               $3, 0
          2        OP_DATA                                                  'tag1%2Ctag10%2Ctag11%2Ctag13%2Ctag15%2Ctag17%2Ctag19%2Ctag20%2Ctag4%2Ctag9%2Ctag8%2Ctag7%2Ctag6%2Ctag5%2Ctag3%2Ctag2%2Ctag18%2Ctag16%2Ctag14%2Ctag12'
    5     3        INIT_FCALL                                               'strpos'
          4        FETCH_DIM_R                                      ~5      !0, 0
          5        FETCH_DIM_R                                      ~6      ~5, 0
          6        SEND_VAL                                                 ~6
          7        SEND_VAL                                                 'tag'
          8        DO_ICALL                                         $7      
          9        TYPE_CHECK                                  1018          $7
         10      > JMPZ                                                     ~8, ->33
    7    11    >   INIT_FCALL                                               'substr'
         12        FETCH_DIM_R                                      ~9      !0, 0
         13        FETCH_DIM_R                                      ~10     ~9, 0
         14        SEND_VAL                                                 ~10
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 3
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !1, $11
    8    19        INIT_FCALL                                               'preg_replace'
         20        SEND_VAL                                                 '%2Ftag%2F'
         21        SEND_VAL                                                 ''
         22        INIT_FCALL                                               'substr'
         23        FETCH_DIM_R                                      ~13     !0, 0
         24        FETCH_DIM_R                                      ~14     ~13, 0
         25        SEND_VAL                                                 ~14
         26        SEND_VAL                                                 3
         27        DO_ICALL                                         $15     
         28        SEND_VAR                                                 $15
         29        DO_ICALL                                         $16     
         30        ASSIGN                                                   !2, $16
    9    31        CONCAT                                           ~18     !1, !2
         32        ECHO                                                     ~18
   11    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.03 ms | 1388 KiB | 19 Q