3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); function byref_function(&$a, &$b) { $a = 3; $b = 4; } $array = array(1, 2); call_user_func_array('byref_function', $array); var_dump($a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4jNQ8
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    9     3        ASSIGN                                                   !0, <array>
   11     4        INIT_FCALL                                               'byref_function'
          5        SEND_ARRAY                                               !0
          6        CHECK_UNDEF_ARGS                                         
          7        DO_FCALL                                      0          
   13     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

End of function byref_function

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.65 ms | 1397 KiB | 18 Q