3v4l.org

run code in 300+ PHP versions simultaneously
<?php function alo($t) { $t['teste'] = 7; } $a = 23; $vector = array('teste' => &$a); $vector['teste'] = 50; echo $vector['teste']; echo $a; alo($vector); echo $a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X6p5K
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $vector
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 23
    7     1        INIT_ARRAY                                       ~3      !0, 'teste'
          2        ASSIGN                                                   !1, ~3
    8     3        ASSIGN_DIM                                               !1, 'teste'
          4        OP_DATA                                                  50
    9     5        FETCH_DIM_R                                      ~6      !1, 'teste'
          6        ECHO                                                     ~6
   10     7        ECHO                                                     !0
   11     8        INIT_FCALL                                               'alo'
          9        SEND_VAR                                                 !1
         10        DO_FCALL                                      0          
   12    11        ECHO                                                     !0
         12      > RETURN                                                   1

Function alo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X6p5K
function name:  alo
number of ops:  4
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN_DIM                                               !0, 'teste'
          2        OP_DATA                                                  7
    4     3      > RETURN                                                   null

End of function alo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.08 ms | 1397 KiB | 14 Q