3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr1 = array( 0 => array(1, 2), 1 => array(5, 6) ); $arr2 = array( 0 => array(2, 3), 1 => array(6, 7) ); var_export( array_map( fn(...$rows) => array_values(array_unique(array_merge(...$rows))), $arr1, $arr2 ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iJY2s
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr1, !1 = $arr2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1        ASSIGN                                                       !1, <array>
   13     2        INIT_FCALL                                                   'var_export'
   14     3        INIT_FCALL                                                   'array_map'
   15     4        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          5        SEND_VAL                                                     ~4
   16     6        SEND_VAR                                                     !0
   17     7        SEND_VAR                                                     !1
   14     8        DO_ICALL                                             $5      
   17     9        SEND_VAR                                                     $5
   13    10        DO_ICALL                                                     
   19    11      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iJY2s
function name:  {closure:/in/iJY2s:15}
number of ops:  13
compiled vars:  !0 = $rows
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   RECV_VARIADIC                                        !0      
          1        INIT_FCALL                                                   'array_values'
          2        INIT_FCALL                                                   'array_unique'
          3        INIT_FCALL                                                   'array_merge'
          4        SEND_UNPACK                                                  !0
          5        CHECK_UNDEF_ARGS                                             
          6        DO_ICALL                                             $1      
          7        SEND_VAR                                                     $1
          8        DO_ICALL                                             $2      
          9        SEND_VAR                                                     $2
         10        DO_ICALL                                             $3      
         11      > RETURN                                                       $3
         12*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
206.9 ms | 1914 KiB | 18 Q