3v4l.org

run code in 300+ PHP versions simultaneously
<?php function merge() { return array_reduce(array_slice(func_get_args(), 1), 'array_merge', []); } var_dump(merge([1, 2, 3], [4, 5, 6]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EaEIr
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'merge'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function merge:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EaEIr
function name:  merge
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'array_reduce'
          1        FUNC_GET_ARGS                                    ~0      1
          2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 'array_merge'
          4        SEND_VAL                                                 <array>
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    6     7*     > RETURN                                                   null

End of function merge

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.32 ms | 1397 KiB | 18 Q