3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 DEVELOPER"; $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
Jump found. Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
Jump found. Position 1 = 12
Branch analysis from position: 12
Jump found. Position 1 = -2
Branch analysis from position: 11
Jump found. Position 1 = -2
filename:       /in/9VRLL
function name:  (null)
number of ops:  13
compiled vars:  !0 = $msg, !1 = $msg1, !2 = $result
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
  25     1        ASSIGN                                                   !0, '2+php+developer+%24150'
  26     2        ASSIGN                                                   !1, 'PHP+DEVELOPER'
  27     3        INIT_FCALL                                               'match_str'
         4        SEND_VAR                                                 !0
         5        SEND_VAR                                                 !1
         6        DO_FCALL                                      0  $5      
         7        ASSIGN                                                   !2, $5
  28     8      > JMPZ                                                     !2, ->11
  29     9    >   ECHO                                                     '%3Ca+href%3D%27%23%27+%3Eanand%3C%2Fa%3E'
        10      > JMP                                                      ->12
  31    11    >   ECHO                                                     '%3Ca+href%3D%27%23%27+%3Ekumar%3C%2Fa%3E'
        12    > > RETURN                                                   1

Function match_str:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
Jump found. Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Jump found. Position 1 = -2
Branch analysis from position: 14
Jump found. Position 1 = -2
Branch analysis from position: 10
filename:       /in/9VRLL
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                                         ~8      !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 7.2.0