3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=array(); $elem=&$arr[12]; echo isset($elem)?"is set":"is not set"; echo "\n"; $elem=array(); $elem[3]="Test"; $elem[2]="prova"; print_r($elem); print_r($arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gne2Y
function name:  (null)
number of ops:  22
compiled vars:  !0 = $arr, !1 = $elem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_W                                      $3      !0, 12
          2        ASSIGN_REF                                               !1, $3
    4     3        ISSET_ISEMPTY_CV                                         !1
          4      > JMPZ                                                     ~5, ->7
          5    >   QM_ASSIGN                                        ~6      'is+set'
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~6      'is+not+set'
          8    >   ECHO                                                     ~6
    5     9        ECHO                                                     '%0A'
    6    10        ASSIGN                                                   !1, <array>
    7    11        ASSIGN_DIM                                               !1, 3
         12        OP_DATA                                                  'Test'
    8    13        ASSIGN_DIM                                               !1, 2
         14        OP_DATA                                                  'prova'
   10    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.98 ms | 1386 KiB | 15 Q