3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [1, 2, 3, 4], ['one', 'two', 'three', 'four'] ]; $out = array_map(function (...$r) { return $r; }, ...$arr); print_r($out);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uJNKG
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr, !1 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
    9     3        SEND_VAL                                                 ~3
          4        SEND_UNPACK                                              !0
          5        CHECK_UNDEF_ARGS                                         
    7     6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
   11     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         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/uJNKG
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_VARIADIC                                    !0      
    8     1      > RETURN                                                   !0
    9     2*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.39 ms | 1002 KiB | 15 Q