3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["they has mystring in it", "some", "other", "elements"]; if (stripos(implode(" ", $array),'mystring') !== false) { echo "found mystring"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/iiRRu
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'stripos'
          2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        SEND_VAL                                                 'mystring'
          8        DO_ICALL                                         $3      
          9        TYPE_CHECK                                  1018          $3
         10      > JMPZ                                                     ~4, ->12
    5    11    >   ECHO                                                     'found+mystring'
    6    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.98 ms | 1001 KiB | 15 Q