3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['id' => 1, 'title' => '1', 'level' => ['id' => 1], 'status' => ['id' => 1]], ['id' => 2, 'title' => '2', 'level' => ['id' => 2], 'status' => ['id' => 2]] ]; foreach($array as $id => $content) { $array[$id]['level'] = $content['level']['id']; $array[$id]['status'] = $content['status']['id']; } var_dump($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 15
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/WX5GP
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $content, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1      > FE_RESET_R                                       $4      !0, ->15
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->15
          3    >   ASSIGN                                                   !2, ~5
    7     4        FETCH_DIM_R                                      ~9      !1, 'level'
          5        FETCH_DIM_R                                      ~10     ~9, 'id'
          6        FETCH_DIM_W                                      $7      !0, !2
          7        ASSIGN_DIM                                               $7, 'level'
          8        OP_DATA                                                  ~10
    8     9        FETCH_DIM_R                                      ~13     !1, 'status'
         10        FETCH_DIM_R                                      ~14     ~13, 'id'
         11        FETCH_DIM_W                                      $11     !0, !2
         12        ASSIGN_DIM                                               $11, 'status'
         13        OP_DATA                                                  ~14
    6    14      > JMP                                                      ->2
         15    >   FE_FREE                                                  $4
   10    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.99 ms | 1395 KiB | 15 Q