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); if($result){ $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/dar8l
function name:  (null)
number of ops:  7
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
   28     5        ECHO                                                     !0
   30     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
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 5
Branch analysis from position: 16
Branch analysis from position: 5
filename:       /in/dar8l
function name:  match_str
number of ops:  22
compiled vars:  !0 = $cellItemName, !1 = $dbItemArray, !2 = $count, !3 = $i, !4 = $reult1, !5 = $result
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                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !4, $8
    9    10      > JMPZ                                                     !5, ->13
   10    11    >   ASSIGN                                                   !2, 1
   11    12      > JMP                                                      ->16
    5    13    >   PRE_INC                                                  !3
         14    >   IS_SMALLER                                               !3, 2
         15      > JMPNZ                                                    ~12, ->5
   17    16    >   IS_EQUAL                                                 !2, 1
         17      > JMPZ                                                     ~13, ->20
   19    18    > > RETURN                                                   1
         19*       JMP                                                      ->21
   23    20    > > RETURN                                                   0
   26    21*     > RETURN                                                   null

End of function match_str

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.39 ms | 1399 KiB | 16 Q