3v4l.org

run code in 300+ PHP versions simultaneously
<?php function match_str($cellItemName,$dbItemArray) { $count = 0; for($i=0;$i<2;$i++) { if(stristr($dbItemArray,$cellItemName)){ $count=1; break; } echo $count; } die; 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/SbXEh
function name:  (null)
number of ops:  7
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+developer'
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
   26     5        ECHO                                                     !0
   28     6      > RETURN                                                   1

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

End of function match_str

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.23 ms | 1399 KiB | 16 Q