3v4l.org

run code in 300+ PHP versions simultaneously
<?php function selecFromRecords($array) { $numargs = func_num_args(); $arg_list = func_get_args(); $out = array(); foreach ($array as $key => $row) { for ($i = 1; $i < $numargs; $i++) { $out[$key][$arg_list[$i]] = $row[$arg_list[$i]]; } } return $out; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/37LHm
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   1

Function selecfromrecords:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 21
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 21
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 11
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 11
Branch analysis from position: 20
Branch analysis from position: 11
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/37LHm
function name:  selecFromRecords
number of ops:  24
compiled vars:  !0 = $array, !1 = $numargs, !2 = $arg_list, !3 = $out, !4 = $row, !5 = $key, !6 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        FUNC_NUM_ARGS                                    ~7      
          2        ASSIGN                                                   !1, ~7
    4     3        FUNC_GET_ARGS                                    ~9      
          4        ASSIGN                                                   !2, ~9
    5     5        ASSIGN                                                   !3, <array>
    7     6      > FE_RESET_R                                       $12     !0, ->21
          7    > > FE_FETCH_R                                       ~13     $12, !4, ->21
          8    >   ASSIGN                                                   !5, ~13
    8     9        ASSIGN                                                   !6, 1
         10      > JMP                                                      ->18
    9    11    >   FETCH_DIM_R                                      ~17     !2, !6
         12        FETCH_DIM_R                                      ~19     !2, !6
         13        FETCH_DIM_R                                      ~20     !4, ~19
         14        FETCH_DIM_W                                      $16     !3, !5
         15        ASSIGN_DIM                                               $16, ~17
         16        OP_DATA                                                  ~20
    8    17        PRE_INC                                                  !6
         18    >   IS_SMALLER                                               !6, !1
         19      > JMPNZ                                                    ~22, ->11
    7    20    > > JMP                                                      ->7
         21    >   FE_FREE                                                  $12
   13    22      > RETURN                                                   !3
   14    23*     > RETURN                                                   null

End of function selecfromrecords

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.26 ms | 1399 KiB | 13 Q