3v4l.org

run code in 300+ 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 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LrDBd
function name:  StringContains
number of ops:  12
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        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !2, $3
   13     7        TYPE_CHECK                                    4          !2
          8      > JMPZ                                                     ~5, ->10
   14     9    > > RETURN                                                   <false>
   16    10    > > RETURN                                                   <true>
   18    11*     > RETURN                                                   null

End of function stringcontains

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.24 ms | 1395 KiB | 15 Q