3v4l.org

run code in 300+ PHP versions simultaneously
<?php $goal = []; $info = [ ["fname1", "lname1", "21"], ["fname2", "lname2", "31"], ]; for ($i = 0; $i < count( $info) ; $i++){ $value1 = $info[$i][0]; // fname $value2 = $info[$i][1]; // lname $value3 = $info[$i][2]; // age $person = [$value1, $value2, $value3]; $goal[] = $person; } print_r($goal);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 4
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 4
Branch analysis from position: 23
Branch analysis from position: 4
filename:       /in/E4kWK
function name:  (null)
number of ops:  27
compiled vars:  !0 = $goal, !1 = $info, !2 = $i, !3 = $value1, !4 = $value2, !5 = $value3, !6 = $person
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    8     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->20
    9     4    >   FETCH_DIM_R                                      ~10     !1, !2
          5        FETCH_DIM_R                                      ~11     ~10, 0
          6        ASSIGN                                                   !3, ~11
   10     7        FETCH_DIM_R                                      ~13     !1, !2
          8        FETCH_DIM_R                                      ~14     ~13, 1
          9        ASSIGN                                                   !4, ~14
   11    10        FETCH_DIM_R                                      ~16     !1, !2
         11        FETCH_DIM_R                                      ~17     ~16, 2
         12        ASSIGN                                                   !5, ~17
   13    13        INIT_ARRAY                                       ~19     !3
         14        ADD_ARRAY_ELEMENT                                ~19     !4
         15        ADD_ARRAY_ELEMENT                                ~19     !5
         16        ASSIGN                                                   !6, ~19
   14    17        ASSIGN_DIM                                               !0
         18        OP_DATA                                                  !6
    8    19        PRE_INC                                                  !2
         20    >   COUNT                                            ~23     !1
         21        IS_SMALLER                                               !2, ~23
         22      > JMPNZ                                                    ~24, ->4
   17    23    >   INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.26 ms | 1000 KiB | 14 Q