3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(1, 2, 3, 4, 5); $len=count($x); echo "array[$len] {"; foreach($x as $key=>$int) echo "[$key] => int[$int]"; echo "}"; unset($x[3]); echo "\n"; $len=count($x); echo "array[$len] {"; foreach($x as $key=>$int) echo "[$key] => int[$int]"; echo "}"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 37
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 37
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 17
filename:       /in/GXEiK
function name:  (null)
number of ops:  40
compiled vars:  !0 = $x, !1 = $len, !2 = $int, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        COUNT                                            ~5      !0
          2        ASSIGN                                                   !1, ~5
    4     3        ROPE_INIT                                     3  ~8      'array%5B'
          4        ROPE_ADD                                      1  ~8      ~8, !1
          5        ROPE_END                                      2  ~7      ~8, '%5D+%7B'
          6        ECHO                                                     ~7
    5     7      > FE_RESET_R                                       $10     !0, ->17
          8    > > FE_FETCH_R                                       ~11     $10, !2, ->17
          9    >   ASSIGN                                                   !3, ~11
    6    10        ROPE_INIT                                     5  ~14     '%5B'
         11        ROPE_ADD                                      1  ~14     ~14, !3
         12        ROPE_ADD                                      2  ~14     ~14, '%5D+%3D%3E+int%5B'
         13        ROPE_ADD                                      3  ~14     ~14, !2
         14        ROPE_END                                      4  ~13     ~14, '%5D'
         15        ECHO                                                     ~13
    5    16      > JMP                                                      ->8
         17    >   FE_FREE                                                  $10
    7    18        ECHO                                                     '%7D'
    8    19        UNSET_DIM                                                !0, 3
    9    20        ECHO                                                     '%0A'
   10    21        COUNT                                            ~17     !0
         22        ASSIGN                                                   !1, ~17
   11    23        ROPE_INIT                                     3  ~20     'array%5B'
         24        ROPE_ADD                                      1  ~20     ~20, !1
         25        ROPE_END                                      2  ~19     ~20, '%5D+%7B'
         26        ECHO                                                     ~19
   12    27      > FE_RESET_R                                       $22     !0, ->37
         28    > > FE_FETCH_R                                       ~23     $22, !2, ->37
         29    >   ASSIGN                                                   !3, ~23
   13    30        ROPE_INIT                                     5  ~26     '%5B'
         31        ROPE_ADD                                      1  ~26     ~26, !3
         32        ROPE_ADD                                      2  ~26     ~26, '%5D+%3D%3E+int%5B'
         33        ROPE_ADD                                      3  ~26     ~26, !2
         34        ROPE_END                                      4  ~25     ~26, '%5D'
         35        ECHO                                                     ~25
   12    36      > JMP                                                      ->28
         37    >   FE_FREE                                                  $22
   14    38        ECHO                                                     '%7D'
   15    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.84 ms | 1399 KiB | 13 Q