3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hot = array( 'hotObj 1', 'hotObj 2', 'hotObj 3', 'hotObj 4', ); $new = array( 'newObj 1', 'newObj 2', ); $result = []; foreach ($hot as $key => &$value) { if(isset($new[$key])){ $value[] = $new[$key]; } } print_r($hot);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 126) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/6cmTv
function name:  (null)
number of ops:  17
compiled vars:  !0 = $hot, !1 = $new, !2 = $result, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, <array>
   14     2        ASSIGN                                                   !2, <array>
   15     3      > FE_RESET_RW                                      $8      !0, ->12
          4    > > FE_FETCH_RW                                      ~9      $8, !3, ->12
          5    >   ASSIGN                                                   !4, ~9
   16     6        ISSET_ISEMPTY_DIM_OBJ                         0          !1, !4
          7      > JMPZ                                                     ~11, ->11
   17     8    >   FETCH_DIM_R                                      ~13     !1, !4
          9        ASSIGN_DIM                                               !3
         10        OP_DATA                                                  ~13
   15    11    > > JMP                                                      ->4
         12    >   FE_FREE                                                  $8
   20    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.58 ms | 1395 KiB | 15 Q