3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ [ 'FirstName' => 'Robin', 'Address' => 'Cave', 'LastName' => 'Mactimmy', 'Tel' => '9076', 'Email' => 'i@o.com', ], [ 'Address' => 'uytr', 'FirstName' => 'Bill', 'Email' => 'j@k.com', 'LastName' => 'Gates', 'Tel' => '7654', ], [ 'LastName' => 'Mahoney', 'Email' => 'y@i.ie', 'FirstName' => 'Tom', 'Tel' => '5689', 'Address' => 'kklll', ] ]; $order = array_flip(['FirstName', 'LastName', 'Address', 'Tel', 'Email']); var_export( array_map(fn($row) => array_merge($order, $row), $array) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5ek4h
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $order
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   27     1        INIT_FCALL                                                   'array_flip'
          2        SEND_VAL                                                     <array>
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
   28     5        INIT_FCALL                                                   'var_export'
   29     6        INIT_FCALL                                                   'array_map'
          7        DECLARE_LAMBDA_FUNCTION                              ~5      [0]
          8        BIND_LEXICAL                                                 ~5, !1
          9        SEND_VAL                                                     ~5
         10        SEND_VAR                                                     !0
         11        DO_ICALL                                             $6      
         12        SEND_VAR                                                     $6
   28    13        DO_ICALL                                                     
   30    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/5ek4h
function name:  {closure:/in/5ek4h:29}
number of ops:  8
compiled vars:  !0 = $row, !1 = $order
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   29     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:
178.84 ms | 1940 KiB | 17 Q