3v4l.org

run code in 300+ PHP versions simultaneously
<?php function match_str($cellItemName,$dbItemArray) { echo $dbItemArray[3]; $count=0; $len=sizeof($dbItemArray); for($i=0;$i<$len;$i++) { if(stristr($dbItemArray[i],$cellItemName)){ $count=1; break; } echo $count; } die; if($count==1) { return 1; } else { return 0; } } $result = match_str("2 php developer $150","php developer") ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6dhWn
function name:  (null)
number of ops:  6
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   INIT_FCALL                                               'match_str'
          1        SEND_VAL                                                 '2+php+developer+%24150'
          2        SEND_VAL                                                 'php+developer'
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
   29     5      > RETURN                                                   1

Function match_str:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 9
Branch analysis from position: 22
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 9
Branch analysis from position: 22
Branch analysis from position: 9
filename:       /in/6dhWn
function name:  match_str
number of ops:  29
compiled vars:  !0 = $cellItemName, !1 = $dbItemArray, !2 = $count, !3 = $len, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        FETCH_DIM_R                                      ~5      !1, 3
          3        ECHO                                                     ~5
    5     4        ASSIGN                                                   !2, 0
    6     5        COUNT                                            ~7      !1
          6        ASSIGN                                                   !3, ~7
    7     7        ASSIGN                                                   !4, 0
          8      > JMP                                                      ->20
    9     9    >   INIT_FCALL                                               'stristr'
         10        FETCH_CONSTANT                                   ~10     'i'
         11        FETCH_DIM_R                                      ~11     !1, ~10
         12        SEND_VAL                                                 ~11
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $12     
         15      > JMPZ                                                     $12, ->18
   10    16    >   ASSIGN                                                   !2, 1
   11    17      > JMP                                                      ->22
   13    18    >   ECHO                                                     !2
    7    19        PRE_INC                                                  !4
         20    >   IS_SMALLER                                               !4, !3
         21      > JMPNZ                                                    ~15, ->9
   15    22    > > EXIT                                                     
   17    23*       IS_EQUAL                                                 !2, 1
         24*       JMPZ                                                     ~16, ->27
   19    25*       RETURN                                                   1
         26*       JMP                                                      ->28
   23    27*       RETURN                                                   0
   26    28*     > RETURN                                                   null

End of function match_str

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.91 ms | 948 KiB | 17 Q