3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = ['test' => ['2' => 'lol']]; if(!array_key_exists('test', $test) || !array_key_exists('test', $test['2'])) { echo "hello"; } var_dump(isset($test['lol']['lol']));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 8
filename:       /in/APD3t
function name:  (null)
number of ops:  16
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ARRAY_KEY_EXISTS                                 ~2      'test', !0
          2        BOOL_NOT                                         ~3      ~2
          3      > JMPNZ_EX                                         ~3      ~3, ->8
          4    >   FETCH_DIM_R                                      ~4      !0, 2
          5        ARRAY_KEY_EXISTS                                 ~5      'test', ~4
          6        BOOL_NOT                                         ~6      ~5
          7        BOOL                                             ~3      ~6
          8    > > JMPZ                                                     ~3, ->10
    6     9    >   ECHO                                                     'hello'
    9    10    >   INIT_FCALL                                               'var_dump'
         11        FETCH_DIM_IS                                     ~7      !0, 'lol'
         12        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      ~7, 'lol'
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.37 ms | 1394 KiB | 15 Q