3v4l.org

run code in 300+ 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 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 13
filename:       /in/vmKEr
function name:  (null)
number of ops:  25
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        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'one'
          4        DO_ICALL                                         $2      
          5        TYPE_CHECK                                  1018  ~3      $2
          6      > JMPZ_EX                                          ~3      ~3, ->13
    6     7    >   INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'two'
         10        DO_ICALL                                         $4      
         11        TYPE_CHECK                                  1018  ~5      $4
         12        BOOL                                             ~3      ~5
         13    > > JMPZ_EX                                          ~3      ~3, ->20
    7    14    >   INIT_FCALL                                               'strpos'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 'three'
         17        DO_ICALL                                         $6      
         18        TYPE_CHECK                                  1018  ~7      $6
         19        BOOL                                             ~3      ~7
         20    > > JMPZ                                                     ~3, ->23
    8    21    >   ECHO                                                     'matched+all+three'
         22      > JMP                                                      ->24
   12    23    >   ECHO                                                     'didn%27t+match+all+three'
   13    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.79 ms | 1395 KiB | 15 Q