3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x['b'] = 'b'; if (isset($x['a']) && strpos($x['a'], ':') !== false) { echo 'a exists'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
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
Branch analysis from position: 11
filename:       /in/MdBWv
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'b'
          1        OP_DATA                                                  'b'
    4     2        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      !0, 'a'
          3      > JMPZ_EX                                          ~2      ~2, ->11
          4    >   INIT_FCALL                                               'strpos'
          5        FETCH_DIM_R                                      ~3      !0, 'a'
          6        SEND_VAL                                                 ~3
          7        SEND_VAL                                                 '%3A'
          8        DO_ICALL                                         $4      
          9        TYPE_CHECK                                  1018  ~5      $4
         10        BOOL                                             ~2      ~5
         11    > > JMPZ                                                     ~2, ->13
    5    12    >   ECHO                                                     'a+exists'
    6    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.9 ms | 1394 KiB | 15 Q