3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "cao isso pala só temp que pala vai temp aparecer temp aqui cao"; $match=array(); $return = array_unique(explode(' ', $str)); if( array_key_exists( array('cao'), $return ) ){ echo 'Yes matched!'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/fBXHi
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $match, !2 = $return
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'cao+isso+pala+s%C3%B3+temp+que+pala+vai+temp+aparecer+temp+aqui+cao'
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_unique'
          3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '+'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    6    10        ARRAY_KEY_EXISTS                                         <array>, !2
         11      > JMPZ                                                     ~8, ->13
    7    12    >   ECHO                                                     'Yes+matched%21'
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.09 ms | 1394 KiB | 17 Q