3v4l.org

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

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.64 ms | 1388 KiB | 16 Q