3v4l.org

run code in 300+ PHP versions simultaneously
<?php function match_str($cellItemName,$dbItemArray) { $count = 0; $reult1 = stristr($cellItemName,$dbItemArray); //echo $reult1; if($reult1){ $count=1; } if($count==1) { return 1; } else { return 0; } } $msg = "2 php developer $150"; $msg1 = "PHP 1DEVELOPER"; $result = match_str($msg,$msg1); if($result) echo "<a href='#' >anand</a>"; else echo "<a href='#' >kumar</a>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lp3I1
function name:  (null)
number of ops:  12
compiled vars:  !0 = $msg, !1 = $msg1, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   ASSIGN                                                   !0, '2+php+developer+%24150'
   26     1        ASSIGN                                                   !1, 'PHP+1DEVELOPER'
   27     2        INIT_FCALL                                               'match_str'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !2, $5
   28     7      > JMPZ                                                     !2, ->10
   29     8    >   ECHO                                                     '%3Ca+href%3D%27%23%27+%3Eanand%3C%2Fa%3E'
          9      > JMP                                                      ->11
   31    10    >   ECHO                                                     '%3Ca+href%3D%27%23%27+%3Ekumar%3C%2Fa%3E'
   33    11    > > RETURN                                                   1

Function match_str:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/lp3I1
function name:  match_str
number of ops:  16
compiled vars:  !0 = $cellItemName, !1 = $dbItemArray, !2 = $count, !3 = $reult1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ASSIGN                                                   !2, 0
    5     3        INIT_FCALL                                               'stristr'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !3, $5
    8     8      > JMPZ                                                     !3, ->10
    9     9    >   ASSIGN                                                   !2, 1
   15    10    >   IS_EQUAL                                                 !2, 1
         11      > JMPZ                                                     ~8, ->14
   17    12    > > RETURN                                                   1
         13*       JMP                                                      ->15
   21    14    > > RETURN                                                   0
   24    15*     > RETURN                                                   null

End of function match_str

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.79 ms | 1402 KiB | 17 Q