3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('/tag/', '/foo/', '/category/', '/erik/'); foreach($a as $b) { if (strpos($b,'/tag/') !== false || strpos($b,'/category') !== false){ echo $b; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 17
Branch analysis from position: 15
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/hrXId
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1      > FE_RESET_R                                       $3      !0, ->18
          2    > > FE_FETCH_R                                               $3, !1, ->18
    8     3    >   INIT_FCALL                                               'strpos'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 '%2Ftag%2F'
          6        DO_ICALL                                         $4      
          7        TYPE_CHECK                                  1018  ~5      $4
          8      > JMPNZ_EX                                         ~5      ~5, ->15
          9    >   INIT_FCALL                                               'strpos'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 '%2Fcategory'
         12        DO_ICALL                                         $6      
         13        TYPE_CHECK                                  1018  ~7      $6
         14        BOOL                                             ~5      ~7
         15    > > JMPZ                                                     ~5, ->17
    9    16    >   ECHO                                                     !1
    6    17    > > JMP                                                      ->2
         18    >   FE_FREE                                                  $3
   11    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.37 ms | 1395 KiB | 15 Q