3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [ 'a' => 'some value', 'b' => 'some value', 'c' => 'some value' ]; $b = [ 'a' => 'another value', 'd' => 'another value', 'e' => 'another value', 'f' => 'another value' ]; $c = [ 'b' => 'some more value', 'x' => 'some more value', 'y' => 'some more value', 'z' => 'some more value' ]; $defaults = array_fill_keys(array_keys($a + $b + $c), ''); var_export( array_map(fn($row) => array_merge($defaults, $row), [$a, $b, $c]) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VYIFd
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $defaults
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1        ASSIGN                                                       !1, <array>
   14     2        ASSIGN                                                       !2, <array>
   21     3        INIT_FCALL                                                   'array_fill_keys'
          4        INIT_FCALL                                                   'array_keys'
          5        ADD                                                  ~7      !0, !1
          6        ADD                                                  ~8      ~7, !2
          7        SEND_VAL                                                     ~8
          8        DO_ICALL                                             $9      
          9        SEND_VAR                                                     $9
         10        SEND_VAL                                                     ''
         11        DO_ICALL                                             $10     
         12        ASSIGN                                                       !3, $10
   22    13        INIT_FCALL                                                   'var_export'
   23    14        INIT_FCALL                                                   'array_map'
         15        DECLARE_LAMBDA_FUNCTION                              ~12     [0]
         16        BIND_LEXICAL                                                 ~12, !3
         17        SEND_VAL                                                     ~12
         18        INIT_ARRAY                                           ~13     !0
         19        ADD_ARRAY_ELEMENT                                    ~13     !1
         20        ADD_ARRAY_ELEMENT                                    ~13     !2
         21        SEND_VAL                                                     ~13
         22        DO_ICALL                                             $14     
         23        SEND_VAR                                                     $14
   22    24        DO_ICALL                                                     
   24    25      > 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/VYIFd
function name:  {closure:/in/VYIFd:23}
number of ops:  8
compiled vars:  !0 = $row, !1 = $defaults
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   23     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
          2        INIT_FCALL                                                   'array_merge'
          3        SEND_VAR                                                     !1
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                             $2      
          6      > RETURN                                                       $2
          7*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.91 ms | 2017 KiB | 18 Q