3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(1, 2, 3, 4, 5); $len=$x.length(); echo "array[$len]"; foreach($x as $key=>$int) echo "[$key] => $int"; unset($x[3]); $len=$x.length(); echo "array[$len]"; foreach($x as $key=>$int) echo "[$key] => $int"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 29, Position 2 = 37
Branch analysis from position: 29
2 jumps found. (Code = 78) Position 1 = 30, Position 2 = 37
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 18
filename:       /in/YDDOv
function name:  (null)
number of ops:  39
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        INIT_FCALL_BY_NAME                                       'length'
          2        DO_FCALL                                      0  $5      
          3        CONCAT                                           ~6      !0, $5
          4        ASSIGN                                                   !1, ~6
    4     5        ROPE_INIT                                     3  ~9      'array%5B'
          6        ROPE_ADD                                      1  ~9      ~9, !1
          7        ROPE_END                                      2  ~8      ~9, '%5D'
          8        ECHO                                                     ~8
    5     9      > FE_RESET_R                                       $11     !0, ->18
         10    > > FE_FETCH_R                                       ~12     $11, !2, ->18
         11    >   ASSIGN                                                   !3, ~12
    6    12        ROPE_INIT                                     4  ~15     '%5B'
         13        ROPE_ADD                                      1  ~15     ~15, !3
         14        ROPE_ADD                                      2  ~15     ~15, '%5D+%3D%3E+'
         15        ROPE_END                                      3  ~14     ~15, !2
         16        ECHO                                                     ~14
    5    17      > JMP                                                      ->10
         18    >   FE_FREE                                                  $11
    7    19        UNSET_DIM                                                !0, 3
    8    20        INIT_FCALL_BY_NAME                                       'length'
         21        DO_FCALL                                      0  $17     
         22        CONCAT                                           ~18     !0, $17
         23        ASSIGN                                                   !1, ~18
    9    24        ROPE_INIT                                     3  ~21     'array%5B'
         25        ROPE_ADD                                      1  ~21     ~21, !1
         26        ROPE_END                                      2  ~20     ~21, '%5D'
         27        ECHO                                                     ~20
   10    28      > FE_RESET_R                                       $23     !0, ->37
         29    > > FE_FETCH_R                                       ~24     $23, !2, ->37
         30    >   ASSIGN                                                   !3, ~24
   11    31        ROPE_INIT                                     4  ~27     '%5B'
         32        ROPE_ADD                                      1  ~27     ~27, !3
         33        ROPE_ADD                                      2  ~27     ~27, '%5D+%3D%3E+'
         34        ROPE_END                                      3  ~26     ~27, !2
         35        ECHO                                                     ~26
   10    36      > JMP                                                      ->29
         37    >   FE_FREE                                                  $23
   12    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.01 ms | 1390 KiB | 13 Q