3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach ($GLOBALS['dummy'] as $k => $v) $v[0]++; unset($v);
based on dIlB4
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
Jump found. Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
Jump found. Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
Jump found. Position 1 = -2
Branch analysis from position: 9
filename:       /in/W1TCI
function name:  (null)
number of ops:  12
compiled vars:  !0 = $v, !1 = $k
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   FETCH_R                      global              $2      'GLOBALS'
         1        FETCH_DIM_R                                      $3      $2, 'dummy'
         2      > FE_RESET_R                                       $4      $3, ->9
         3    > > FE_FETCH_R                                       ~5      $4, !0, ->9
         4    >   ASSIGN                                                   !1, ~5
   4     5        FETCH_DIM_RW                                     $7      !0, 0
         6        POST_INC                                         ~8      $7
         7        FREE                                                     ~8
         8      > JMP                                                      ->3
         9    >   FE_FREE                                                  $4
   5    10        UNSET_VAR                                                !0
        11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0