3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo StringContains('aud\ios','\\'); function StringContains($the_string,$contains) { $pos = strpos($the_string,$contains); if($pos === false) return false; return true; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LrDBd
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                           'StringContains'
          1        SEND_VAL_EX                                                  'aud%5Cios'
          2        SEND_VAL_EX                                                  '%5C'
          3        DO_FCALL                                          0  $0      
          4        ECHO                                                         $0
   18     5      > RETURN                                                       1

Function stringcontains:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LrDBd
function name:  StringContains
number of ops:  9
compiled vars:  !0 = $the_string, !1 = $contains, !2 = $pos
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   11     2        FRAMELESS_ICALL_2                strpos              ~3      !0, !1
          3        ASSIGN                                                       !2, ~3
   13     4        TYPE_CHECK                                        4          !2
          5      > JMPZ                                                         ~5, ->7
   14     6    > > RETURN                                                       <false>
   16     7    > > RETURN                                                       <true>
   18     8*     > RETURN                                                       null

End of function stringcontains

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.96 ms | 3264 KiB | 13 Q