3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = [ 100 => [ ['product_id' => 101, 'name' => ''], ['product_id' => 102, 'name' => ''], ['product_id' => 103, 'name' => ''], ], 200 => [ ['product_id' => 201, 'name' => ''], ['product_id' => 202, 'name' => ''], ], 300 => [ ['product_id' => 301, 'name' => ''], ['product_id' => 302, 'name' => ''], ['product_id' => 303, 'name' => ''], ['product_id' => 304, 'name' => ''], ] ]; var_export( array_merge( ...array_map( function() { return array_filter( func_get_args() ); }, ...$rows ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bdgPl
function name:  (null)
number of ops:  15
compiled vars:  !0 = $rows
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   21     1        INIT_FCALL                                               'var_export'
   22     2        INIT_FCALL                                               'array_merge'
   23     3        INIT_FCALL                                               'array_map'
   24     4        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   28     5        SEND_VAL                                                 ~2
   29     6        SEND_UNPACK                                              !0
          7        CHECK_UNDEF_ARGS                                         
   23     8        DO_ICALL                                         $3      
   29     9        SEND_UNPACK                                              $3
         10        CHECK_UNDEF_ARGS                                         
   22    11        DO_ICALL                                         $4      
   29    12        SEND_VAR                                                 $4
   21    13        DO_ICALL                                                 
   32    14      > 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/bdgPl
function name:  {closure}
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'array_filter'
   26     1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
   25     3        DO_ICALL                                         $1      
   26     4      > RETURN                                                   $1
   28     5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.42 ms | 1002 KiB | 17 Q