3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [0 => ['id' => 1]]; $array2 = ["1008","4"]; for ($i = 0; $i < count($array1); $i++) { $array1[$i]['count'] = $array2[$i]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/R5fH5
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array1, !1 = $array2, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->9
    8     4    >   FETCH_DIM_R                                      ~8      !1, !2
          5        FETCH_DIM_W                                      $6      !0, !2
          6        ASSIGN_DIM                                               $6, 'count'
          7        OP_DATA                                                  ~8
    7     8        PRE_INC                                                  !2
          9    >   COUNT                                            ~10     !0
         10        IS_SMALLER                                               !2, ~10
         11      > JMPNZ                                                    ~11, ->4
    9    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.46 ms | 1393 KiB | 13 Q