3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [range(0, 4)]; foreach ($array as $key => $val) { unset($val[1]); var_export($val); echo "\n---\n"; var_export($array); echo "\n---\n"; } var_export($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/aZ52f
function name:  (null)
number of ops:  24
compiled vars:  !0 = $array, !1 = $val, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 4
          3        DO_ICALL                                         $3      
          4        INIT_ARRAY                                       ~4      $3
          5        ASSIGN                                                   !0, ~4
    4     6      > FE_RESET_R                                       $6      !0, ->19
          7    > > FE_FETCH_R                                       ~7      $6, !1, ->19
          8    >   ASSIGN                                                   !2, ~7
    5     9        UNSET_DIM                                                !1, 1
    6    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    7    13        ECHO                                                     '%0A---%0A'
    8    14        INIT_FCALL                                               'var_export'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
    9    17        ECHO                                                     '%0A---%0A'
    4    18      > JMP                                                      ->7
         19    >   FE_FREE                                                  $6
   11    20        INIT_FCALL                                               'var_export'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.17 ms | 1006 KiB | 15 Q