3v4l.org

run code in 500+ PHP versions simultaneously
<?php $line = "one blah, two blah blah three"; if (strpos($line, "one") !== false && strpos($line, "two") !== false && strpos($line, "three") !== false) { echo "matched all three"; } else { echo "didn't match all three"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/vmKEr
function name:  (null)
number of ops:  16
compiled vars:  !0 = $line
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'one+blah%2C+two+blah+blah+three'
    5     1        FRAMELESS_ICALL_2                strpos              ~2      !0, 'one'
          2        TYPE_CHECK                                      1018  ~3      ~2
          3      > JMPZ_EX                                              ~3      ~3, ->7
    6     4    >   FRAMELESS_ICALL_2                strpos              ~4      !0, 'two'
          5        TYPE_CHECK                                      1018  ~5      ~4
          6        BOOL                                                 ~3      ~5
          7    > > JMPZ_EX                                              ~3      ~3, ->11
    7     8    >   FRAMELESS_ICALL_2                strpos              ~6      !0, 'three'
          9        TYPE_CHECK                                      1018  ~7      ~6
         10        BOOL                                                 ~3      ~7
         11    > > JMPZ                                                         ~3, ->14
    8    12    >   ECHO                                                         'matched+all+three'
    5    13      > JMP                                                          ->15
   12    14    >   ECHO                                                         'didn%27t+match+all+three'
   13    15    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.84 ms | 3026 KiB | 13 Q