3v4l.org

run code in 500+ PHP versions simultaneously
<?php $masterArray = [ [ ['gross_value' => '100', 'quantity' => '5'], ['gross_value' => '200', 'quantity' => '6'] ] ]; var_export( array_map('array_merge', ...$masterArray) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LRS9q
function name:  (null)
number of ops:  10
compiled vars:  !0 = $masterArray
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   10     1        INIT_FCALL                                                   'var_export'
   11     2        INIT_FCALL                                                   'array_map'
          3        SEND_VAL                                                     'array_merge'
          4        SEND_UNPACK                                                  !0
          5        CHECK_UNDEF_ARGS                                             
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
   10     8        DO_ICALL                                                     
   12     9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
150.38 ms | 1910 KiB | 15 Q