3v4l.org

run code in 300+ 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 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xei8v
function name:  (null)
number of ops:  15
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        INIT_FCALL                                               'strpos'
          4        CONCAT                                           ~6      !0, '%2C'
          5        CONCAT                                           ~7      ~6, !1
          6        SEND_VAL                                                 ~7
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $8      
          9        TYPE_CHECK                                  1018          $8
         10      > JMPZ                                                     ~9, ->13
    8    11    >   ECHO                                                     'found'
         12      > JMP                                                      ->14
   10    13    >   ECHO                                                     'not+found'
   11    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.38 ms | 1394 KiB | 15 Q