3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=null; if (isset($arr['id'])) echo "* ".print_r($arr['id']); else echo "** arr[id] is not set";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1HRj2
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'id'
          2      > JMPZ                                                     ~2, ->10
          3    >   INIT_FCALL                                               'print_r'
          4        FETCH_DIM_R                                      ~3      !0, 'id'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7        CONCAT                                           ~5      '%2A+', $4
          8        ECHO                                                     ~5
          9      > JMP                                                      ->11
    5    10    >   ECHO                                                     '%2A%2A+arr%5Bid%5D+is+not+set'
         11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.11 ms | 1394 KiB | 15 Q