3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('/tag/', '/foo/', '/category/', '/erik/'); foreach($a as $b) { if (strpos($b,'/tag/') !== false || strpos($b,'/category') !== false){ echo $b; } }
based on XcgoQ
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
Jump found. Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
Jump found. Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
Jump found. Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
Jump found. Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 17
Branch analysis from position: 15
Branch analysis from position: 18
Jump found. 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        IS_NOT_IDENTICAL                                 ~5      $4, <false>
         8      > JMPNZ_EX                                         ~5      ~5, ->15
         9    >   INIT_FCALL                                               'strpos'
        10        SEND_VAR                                                 !1
        11        SEND_VAL                                                 '%2Fcategory'
        12        DO_ICALL                                         $6      
        13        IS_NOT_IDENTICAL                                 ~7      $6, <false>
        14        BOOL                                             ~5      ~7
        15    > > JMPZ                                                     ~5, ->17
   9    16    >   ECHO                                                     !1
        17    > > JMP                                                      ->2
        18    >   FE_FREE                                                  $3
        19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0