3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orgName = "dog"; $organizations = ["dog","cat"]; foreach ($organizations as &$value) { if( stristr($orgName,$value) == True ){ echo $value; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 126) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/WI83F
function name:  (null)
number of ops:  14
compiled vars:  !0 = $orgName, !1 = $organizations, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'dog'
    5     1        ASSIGN                                                   !1, <array>
    7     2      > FE_RESET_RW                                      $5      !1, ->12
          3    > > FE_FETCH_RW                                              $5, !2, ->12
    9     4    >   INIT_FCALL                                               'stristr'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        BOOL                                             ~7      $6
          9      > JMPZ                                                     ~7, ->11
   10    10    >   ECHO                                                     !2
    7    11    > > JMP                                                      ->3
         12    >   FE_FREE                                                  $5
   14    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.08 ms | 1386 KiB | 15 Q