3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo ($arrays) { return array_merge($arrays); } $func = 'foo'; $input = Array( Array ( 'd1' => 'P', 'd2' => '', 'd3' => '' ), Array ( 'd1' => '', 'd2' => 'A', 'd3' => 'P' ) ); $result = call_user_func_array($func, $input); var_export($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AQ00v
function name:  (null)
number of ops:  11
compiled vars:  !0 = $func, !1 = $input, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'foo'
    9     1        ASSIGN                                                   !1, <array>
   24     2        INIT_USER_CALL                                0          'call_user_func_array', !0
          3        SEND_ARRAY                                               !1
          4        CHECK_UNDEF_ARGS                                         
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !2, $5
   26     7        INIT_FCALL                                               'var_export'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AQ00v
function name:  foo
number of ops:  6
compiled vars:  !0 = $arrays
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'array_merge'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
    5     5*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.44 ms | 1395 KiB | 17 Q