3v4l.org

run code in 500+ PHP versions simultaneously
<?php function bar(&$var) {} $foo = array(10, 20); $ref = &$foo[]; bar($foo[]); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0l8OE
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo, !1 = $ref
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, <array>
    5     1        FETCH_DIM_W                                          $3      !0
          2        ASSIGN_REF                                                   !1, $3
    6     3        INIT_FCALL                                                   'bar'
          4        FETCH_DIM_W                                          $5      !0
          5        SEND_REF                                                     $5
          6        DO_FCALL                                          0          
    7     7        INIT_FCALL                                                   'var_dump'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0l8OE
function name:  bar
number of ops:  2
compiled vars:  !0 = $var
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
          1      > RETURN                                                       null

End of function bar

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.34 ms | 2425 KiB | 10 Q