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/tg5bN
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        ASSIGN                                                   !1, <array>
   15     2        INIT_FCALL                                               'array_map'
   16     3        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          4        BIND_LEXICAL                                             ~4, !1
          5        SEND_VAL                                                 ~4
   17     6        SEND_VAR                                                 !0
   15     7        DO_ICALL                                                 
   20     8        INIT_FCALL                                               'var_dump'
   21     9        SEND_VAR                                                 !1
   20    10        DO_ICALL                                                 
   22    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/tg5bN
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $row, !1 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     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:
142.32 ms | 1436 KiB | 17 Q