3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids = [ 572149922960422, 1586735531587728, 1084479334908663, 9875443331682, 9291002010388, 2108382717199939, 911647002295982, 100222991929377 ]; $names = [ "John Doe", "Jane Doe", "Shawn Smith", "Jack Nickleson", "Brad Pitt", "Chad Kroger", "Angelina Jolie", "Bruce Campell" ]; function customCombine($combined){ $final = []; $i = 0; foreach($combined as $id => $name){ $final[$i]['member_id'] = $id; $final[$i]['member_name'] = $name; $i++; } return $final; } print_r(customCombine(array_combine($ids,$names)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aHBjI
function name:  (null)
number of ops:  13
compiled vars:  !0 = $ids, !1 = $names
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        ASSIGN                                                   !1, <array>
   37     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'customcombine'
          4        INIT_FCALL                                               'array_combine'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function customcombine:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/aHBjI
function name:  customCombine
number of ops:  17
compiled vars:  !0 = $combined, !1 = $final, !2 = $i, !3 = $name, !4 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
   26     1        ASSIGN                                                   !1, <array>
   27     2        ASSIGN                                                   !2, 0
   28     3      > FE_RESET_R                                       $7      !0, ->14
          4    > > FE_FETCH_R                                       ~8      $7, !3, ->14
          5    >   ASSIGN                                                   !4, ~8
   29     6        FETCH_DIM_W                                      $10     !1, !2
          7        ASSIGN_DIM                                               $10, 'member_id'
          8        OP_DATA                                                  !4
   30     9        FETCH_DIM_W                                      $12     !1, !2
         10        ASSIGN_DIM                                               $12, 'member_name'
         11        OP_DATA                                                  !3
   31    12        PRE_INC                                                  !2
   28    13      > JMP                                                      ->4
         14    >   FE_FREE                                                  $7
   34    15      > RETURN                                                   !1
   35    16*     > RETURN                                                   null

End of function customcombine

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.76 ms | 946 KiB | 19 Q