3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $arr = array(1,2,3); function byvalue($arg) { $arg[0] = 10; } byvalue($arr); var_dump($arr); // no change call_user_func_array('byvalue', array(&$arr)); var_dump($arr); // no change
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hHmoh
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, <array>
    7     4        INIT_FCALL                                               'byvalue'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0          
    8     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'byvalue'
         11        INIT_ARRAY                                       ~5      !0
         12        SEND_ARRAY                                               ~5
         13        CHECK_UNDEF_ARGS                                         
         14        DO_FCALL                                      0          
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

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

End of function byvalue

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.59 ms | 1402 KiB | 19 Q