3v4l.org

run code in 300+ PHP versions simultaneously
<?php function match_str($cellItemName,$dbItemArray) { $count = 0; for($i=0;$i<2;$i++) { $reult1 = stristr($cellItemName,$dbItemArray); echo $reult1; if($reult1){ $count=1; break; } } if($count==1) { return 1; } else { return 0; } } $result = match_str("2 php developer $150","php developer"); echo $result; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ieiXh
function name:  (null)
number of ops:  7
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     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        ECHO                                                     !0
   31     6      > RETURN                                                   1

Function match_str:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
Branch analysis from position: 5
filename:       /in/ieiXh
function name:  match_str
number of ops:  23
compiled vars:  !0 = $cellItemName, !1 = $dbItemArray, !2 = $count, !3 = $i, !4 = $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        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->15
    7     5    >   INIT_FCALL                                               'stristr'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !4, $7
    8    10        ECHO                                                     !4
   10    11      > JMPZ                                                     !4, ->14
   11    12    >   ASSIGN                                                   !2, 1
   12    13      > JMP                                                      ->17
    5    14    >   PRE_INC                                                  !3
         15    >   IS_SMALLER                                               !3, 2
         16      > JMPNZ                                                    ~11, ->5
   18    17    >   IS_EQUAL                                                 !2, 1
         18      > JMPZ                                                     ~12, ->21
   20    19    > > RETURN                                                   1
         20*       JMP                                                      ->22
   24    21    > > RETURN                                                   0
   27    22*     > RETURN                                                   null

End of function match_str

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 1390 KiB | 16 Q