3v4l.org

run code in 500+ PHP versions simultaneously
<?php function f($a) { $b = 2; } $b = 1; call_user_func_array('f', array(&$b)); echo $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0kBBK
function name:  (null)
number of ops:  8
compiled vars:  !0 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                       !0, 1
    8     1        INIT_FCALL                                                   'f'
          2        INIT_ARRAY                                           ~2      !0
          3        SEND_ARRAY                                                   ~2
          4        CHECK_UNDEF_ARGS                                             
          5        DO_FCALL                                          1          
    9     6        ECHO                                                         !0
          7      > RETURN                                                       1

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.56 ms | 3281 KiB | 14 Q