3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a','b','c','d','e']; $i = count($arr); foreach ($arr as $key => $value) { $child[$i++] = $value; unset($arr[$key]); } var_dump($arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/qWuU5
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $i, !2 = $value, !3 = $key, !4 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~6      !0
          2        ASSIGN                                                   !1, ~6
    5     3      > FE_RESET_R                                       $8      !0, ->11
          4    > > FE_FETCH_R                                       ~9      $8, !2, ->11
          5    >   ASSIGN                                                   !3, ~9
    6     6        POST_INC                                         ~11     !1
          7        ASSIGN_DIM                                               !4, ~11
          8        OP_DATA                                                  !2
    7     9        UNSET_DIM                                                !0, !3
    5    10      > JMP                                                      ->4
         11    >   FE_FREE                                                  $8
   10    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.76 ms | 1386 KiB | 15 Q