3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'foo'; var_dump(isset($x['bonk'])); var_dump(isset($x['bonk'][0])); var_dump(isset($x['bonk'][1]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o1ktX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo'
    4     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      !0, 'bonk'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'var_dump'
          6        FETCH_DIM_IS                                     ~4      !0, 'bonk'
          7        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      ~4, 0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        FETCH_DIM_IS                                     ~7      !0, 'bonk'
         12        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      ~7, 1
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.73 ms | 1398 KiB | 16 Q