3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows22['Status2']="PR001:Approved,SA001:Rejected"; $che = "SA001"; if($rows22['Status2'] == "") { $status = ""; } else { $ks = 0; $ched = explode(',',$che); while($ks < sizeof($ched)) { if (strpos($rows22['Status2'],$ched[$ks]) !== false) { $sts = explode(',',$rows225['Status2']); $s = 0; while($s < sizeof($sts)) { if (strpos($sts[$s],$ched[$ks]) !== false) { $sts[$s] = ""; } if($s == 0) $status = $sts[$s]; else { $status = $status.",".$sts[$s]; } $s++; } } else { $status = $rows225['Status2']; } $ks++; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 15
Branch analysis from position: 61
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 55
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
2 jumps found. (Code = 44) Position 1 = 54, Position 2 = 31
Branch analysis from position: 54
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 15
Branch analysis from position: 61
Branch analysis from position: 15
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 46
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 54, Position 2 = 31
Branch analysis from position: 54
Branch analysis from position: 31
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 54, Position 2 = 31
Branch analysis from position: 54
Branch analysis from position: 31
Branch analysis from position: 41
Branch analysis from position: 55
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 15
Branch analysis from position: 61
Branch analysis from position: 15
filename:       /in/c8atT
function name:  (null)
number of ops:  62
compiled vars:  !0 = $rows22, !1 = $che, !2 = $status, !3 = $ks, !4 = $ched, !5 = $sts, !6 = $rows225, !7 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'Status2'
          1        OP_DATA                                                  'PR001%3AApproved%2CSA001%3ARejected'
    5     2        ASSIGN                                                   !1, 'SA001'
    7     3        FETCH_DIM_R                                      ~10     !0, 'Status2'
          4        IS_EQUAL                                                 ~10, ''
          5      > JMPZ                                                     ~11, ->8
    9     6    >   ASSIGN                                                   !2, ''
          7      > JMP                                                      ->61
   14     8    >   ASSIGN                                                   !3, 0
   15     9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%2C'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $14     
         13        ASSIGN                                                   !4, $14
   16    14      > JMP                                                      ->58
   18    15    >   INIT_FCALL                                               'strpos'
         16        FETCH_DIM_R                                      ~16     !0, 'Status2'
         17        SEND_VAL                                                 ~16
         18        FETCH_DIM_R                                      ~17     !4, !3
         19        SEND_VAL                                                 ~17
         20        DO_ICALL                                         $18     
         21        TYPE_CHECK                                  1018          $18
         22      > JMPZ                                                     ~19, ->55
   21    23    >   INIT_FCALL                                               'explode'
         24        SEND_VAL                                                 '%2C'
         25        FETCH_DIM_R                                      ~20     !6, 'Status2'
         26        SEND_VAL                                                 ~20
         27        DO_ICALL                                         $21     
         28        ASSIGN                                                   !5, $21
   23    29        ASSIGN                                                   !7, 0
   24    30      > JMP                                                      ->51
   27    31    >   INIT_FCALL                                               'strpos'
         32        FETCH_DIM_R                                      ~24     !5, !7
         33        SEND_VAL                                                 ~24
         34        FETCH_DIM_R                                      ~25     !4, !3
         35        SEND_VAL                                                 ~25
         36        DO_ICALL                                         $26     
         37        TYPE_CHECK                                  1018          $26
         38      > JMPZ                                                     ~27, ->41
   29    39    >   ASSIGN_DIM                                               !5, !7
         40        OP_DATA                                                  ''
   32    41    >   IS_EQUAL                                                 !7, 0
         42      > JMPZ                                                     ~29, ->46
   33    43    >   FETCH_DIM_R                                      ~30     !5, !7
         44        ASSIGN                                                   !2, ~30
         45      > JMP                                                      ->50
   36    46    >   CONCAT                                           ~32     !2, '%2C'
         47        FETCH_DIM_R                                      ~33     !5, !7
         48        CONCAT                                           ~34     ~32, ~33
         49        ASSIGN                                                   !2, ~34
   39    50    >   PRE_INC                                                  !7
   24    51    >   COUNT                                            ~37     !5
         52        IS_SMALLER                                               !7, ~37
         53      > JMPNZ                                                    ~38, ->31
         54    > > JMP                                                      ->57
   44    55    >   FETCH_DIM_R                                      ~39     !6, 'Status2'
         56        ASSIGN                                                   !2, ~39
   46    57    >   PRE_INC                                                  !3
   16    58    >   COUNT                                            ~42     !4
         59        IS_SMALLER                                               !3, ~42
         60      > JMPNZ                                                    ~43, ->15
   48    61    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.84 ms | 1400 KiB | 17 Q