3v4l.org

run code in 500+ 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 = 13
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/3h37a
function name:  (null)
number of ops:  15
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, ->13
          3    > > FE_FETCH_R                                           ~10     $9, !2, ->13
          4    >   ASSIGN                                                       !3, ~10
    5     5        FRAMELESS_ICALL_2                strpos              ~12     !1, !2
          6        TYPE_CHECK                                      1018          ~12
          7      > JMPZ                                                         ~13, ->12
    6     8    >   PRE_INC                                                      !4
    7     9        FETCH_DIM_R                                          ~15     !6, 'id'
         10        ASSIGN_DIM                                                   !5, ~15
         11        OP_DATA                                                      !4
    4    12    > > JMP                                                          ->3
         13    >   FE_FREE                                                      $9
    9    14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
147.25 ms | 3301 KiB | 13 Q