3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'c' => [ [ 'q' => 1, ], [ 'q' => 2, ], [ 'q' => 3, ], ] ]; $before = $data; foreach ($data['c'] as &$c) { } $after = $data; var_dump($before === $after); foreach ($data['c'] as $c) { } $after = $data; var_dump($before === $after);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 126) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/OuDSC
function name:  (null)
number of ops:  23
compiled vars:  !0 = $data, !1 = $before, !2 = $c, !3 = $after
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   16     1        ASSIGN                                                   !1, !0
   17     2        FETCH_DIM_W                                      $6      !0, 'c'
          3      > FE_RESET_RW                                      $7      $6, ->6
          4    > > FE_FETCH_RW                                              $7, !2, ->6
          5    > > JMP                                                      ->4
          6    >   FE_FREE                                                  $7
   19     7        ASSIGN                                                   !3, !0
   20     8        INIT_FCALL                                               'var_dump'
          9        IS_IDENTICAL                                     ~9      !1, !3
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                                 
   22    12        FETCH_DIM_R                                      ~11     !0, 'c'
         13      > FE_RESET_R                                       $12     ~11, ->16
         14    > > FE_FETCH_R                                               $12, !2, ->16
         15    > > JMP                                                      ->14
         16    >   FE_FREE                                                  $12
   24    17        ASSIGN                                                   !3, !0
   26    18        INIT_FCALL                                               'var_dump'
         19        IS_IDENTICAL                                     ~14     !1, !3
         20        SEND_VAL                                                 ~14
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.8 ms | 1426 KiB | 14 Q