3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dynamic_list = "AA, AB, BA"; $static_list = "MC,JL,EO"; $search = "JL"; if (strpos($dynamic_list . ',' . $static_list, $search) !== false) { echo 'found'; } else { echo 'not found'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xei8v
function name:  (null)
number of ops:  12
compiled vars:  !0 = $dynamic_list, !1 = $static_list, !2 = $search
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'AA%2C+AB%2C+BA'
    3     1        ASSIGN                                                       !1, 'MC%2CJL%2CEO'
    5     2        ASSIGN                                                       !2, 'JL'
    7     3        CONCAT                                               ~6      !0, '%2C'
          4        CONCAT                                               ~7      ~6, !1
          5        FRAMELESS_ICALL_2                strpos              ~8      ~7, !2
          6        TYPE_CHECK                                      1018          ~8
          7      > JMPZ                                                         ~9, ->10
    8     8    >   ECHO                                                         'found'
    7     9      > JMP                                                          ->11
   10    10    >   ECHO                                                         'not+found'
   11    11    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.49 ms | 2064 KiB | 13 Q