3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xyz = array ('a'=>'value1', 'b'=>'', 'c'=>'value3'); var_dump ($xyz); echo '<br />'; // let's see what we have if (isset($xyz['b'])) $foo = $xyz['b']; // no complaints here $foo = $xyz['b']; // this crashes echo 'foo is set to:', $foo, ': end', '<br />';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/SpuFW
function name:  (null)
number of ops:  16
compiled vars:  !0 = $xyz, !1 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
          4        ECHO                                                         '%3Cbr+%2F%3E'
    5     5        ISSET_ISEMPTY_DIM_OBJ                             0          !0, 'b'
          6      > JMPZ                                                         ~4, ->9
          7    >   FETCH_DIM_R                                          ~5      !0, 'b'
          8        ASSIGN                                                       !1, ~5
    6     9    >   FETCH_DIM_R                                          ~7      !0, 'b'
         10        ASSIGN                                                       !1, ~7
    7    11        ECHO                                                         'foo+is+set+to%3A'
         12        ECHO                                                         !1
         13        ECHO                                                         '%3A+end'
         14        ECHO                                                         '%3Cbr+%2F%3E'
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
148.63 ms | 476 KiB | 8 Q