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; } } $result = match_str("2 php developer $150","PHP 1DEVELOPER"); 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 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QB0To
function name:  (null)
number of ops:  10
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'match_str'
          1        SEND_VAL                                                 '2+php+developer+%24150'
          2        SEND_VAL                                                 'PHP+1DEVELOPER'
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
   26     5      > JMPZ                                                     !0, ->8
   27     6    >   ECHO                                                     '%3Ca+href%3D%27%23%27+%3Eanand%3C%2Fa%3E'
          7      > JMP                                                      ->9
   29     8    >   ECHO                                                     '%3Ca+href%3D%27%23%27+%3Ekumar%3C%2Fa%3E'
   31     9    > > 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/QB0To
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:
146.56 ms | 1399 KiB | 16 Q