3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); function byref_function(&$a, &$b) { } $array = [1, 2]; $a = 1; $b = 2; byref_function(...$array); call_user_func_array('byref_function', $array); byref_function($a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oX5fb
function name:  (null)
number of ops:  19
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>
   10     4        ASSIGN                                                   !1, 1
   11     5        ASSIGN                                                   !2, 2
   13     6        INIT_FCALL                                               'byref_function'
          7        SEND_UNPACK                                              !0
          8        CHECK_UNDEF_ARGS                                         
          9        DO_FCALL                                      1          
   14    10        INIT_FCALL                                               'byref_function'
         11        SEND_ARRAY                                               !0
         12        CHECK_UNDEF_ARGS                                         
         13        DO_FCALL                                      0          
   15    14        INIT_FCALL                                               'byref_function'
         15        SEND_REF                                                 !1
         16        SEND_REF                                                 !2
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

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

End of function byref_function

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.9 ms | 1398 KiB | 18 Q