3v4l.org

run code in 300+ PHP versions simultaneously
<?php function m() { $args = func_get_args(); call_user_func_array('array_merge', $args); } $a1 = array('hi'=>'there'); $a2 = array('world' => 'view'); $b=m($a1,$a2); var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Olbo5
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a1, !1 = $a2, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
    8     2        INIT_FCALL                                               'm'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !2, $5
    9     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function m:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Olbo5
function name:  m
number of ops:  7
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FUNC_GET_ARGS                                    ~1      
          1        ASSIGN                                                   !0, ~1
    4     2        INIT_FCALL                                               'array_merge'
          3        SEND_ARRAY                                               !0
          4        CHECK_UNDEF_ARGS                                         
          5        DO_FCALL                                      0          
    5     6      > RETURN                                                   null

End of function m

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.68 ms | 1397 KiB | 18 Q