3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.58 ms | 1386 KiB | 17 Q