3v4l.org

run code in 300+ PHP versions simultaneously
<?php $titles_array = array("asdf","xcv","123"); $subject = "sd"; foreach($titles_array as $k=>$v) { if(strpos($subject,$v) !== false) { $i++; $asd[$titles['id']] = $i; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 15
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/IfR8N
function name:  (null)
number of ops:  18
compiled vars:  !0 = $titles_array, !1 = $subject, !2 = $v, !3 = $k, !4 = $i, !5 = $asd, !6 = $titles
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'sd'
    4     2      > FE_RESET_R                                       $9      !0, ->16
          3    > > FE_FETCH_R                                       ~10     $9, !2, ->16
          4    >   ASSIGN                                                   !3, ~10
    5     5        INIT_FCALL                                               'strpos'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $12     
          9        TYPE_CHECK                                  1018          $12
         10      > JMPZ                                                     ~13, ->15
    6    11    >   PRE_INC                                                  !4
    7    12        FETCH_DIM_R                                      ~15     !6, 'id'
         13        ASSIGN_DIM                                               !5, ~15
         14        OP_DATA                                                  !4
    4    15    > > JMP                                                      ->3
         16    >   FE_FREE                                                  $9
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.96 ms | 1395 KiB | 15 Q