3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = "My string"; $string2 = "string"; if(substr_count($string1) > 0) echo "string have a string inside it"; else echo "not substring exsist";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V2WUT
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string1, !1 = $string2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'My+string'
    3     1        ASSIGN                                                   !1, 'string'
    4     2        INIT_FCALL                                               'substr_count'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        IS_SMALLER                                               0, $4
          6      > JMPZ                                                     ~5, ->9
    5     7    >   ECHO                                                     'string+have+a+string+inside+it'
          8      > JMP                                                      ->10
    7     9    >   ECHO                                                     'not+substring+exsist'
         10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.1 ms | 1394 KiB | 15 Q