3v4l.org

run code in 300+ PHP versions simultaneously
<?php $insertData = [ [ 'test' => '1', 'test1' => '2', ], [ 'test' => '3', 'test1' => '4', ] ]; $values = array_map(fn (array $row) => array_push($values, ...array_values($row)), $insertData); var_dump( ($values), );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ef86V
function name:  (null)
number of ops:  12
compiled vars:  !0 = $insertData, !1 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
          3        BIND_LEXICAL                                             ~3, !1
          4        SEND_VAL                                                 ~3
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
   16     8        INIT_FCALL                                               'var_dump'
   17     9        SEND_VAR                                                 !1
   16    10        DO_ICALL                                                 
   18    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/ef86V
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $row, !1 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        INIT_FCALL                                               'array_push'
          3        SEND_REF                                                 !1
          4        INIT_FCALL                                               'array_values'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_UNPACK                                              $2
          8        CHECK_UNDEF_ARGS                                         
          9        DO_ICALL                                         $3      
         10      > RETURN                                                   $3
         11*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.81 ms | 1436 KiB | 17 Q