3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "jackson heights, queens, new york, us"; $word = explode(',', $string); echo $word[1]."<br>"; if(strpos($string, $word[1]) === false){ echo "not found"; } else { echo "found"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s7Xgc
function name:  (null)
number of ops:  20
compiled vars:  !0 = $string, !1 = $word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'jackson+heights%2C+queens%2C+new+york%2C+us'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        FETCH_DIM_R                                      ~5      !1, 1
          7        CONCAT                                           ~6      ~5, '%3Cbr%3E'
          8        ECHO                                                     ~6
    5     9        INIT_FCALL                                               'strpos'
         10        SEND_VAR                                                 !0
         11        FETCH_DIM_R                                      ~7      !1, 1
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                         $8      
         14        TYPE_CHECK                                    4          $8
         15      > JMPZ                                                     ~9, ->18
    6    16    >   ECHO                                                     'not+found'
         17      > JMP                                                      ->19
    8    18    >   ECHO                                                     'found'
    9    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.64 ms | 1395 KiB | 17 Q