3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruit = array('a' => 'apple', 'b' => 'banana', 'c' => 'cranberry'); $abc =& $fruit; reset($fruit); while (list($key, $val) = each($abc)) { $fff = $abc; echo "$key => $val\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
Branch analysis from position: 6
filename:       /in/CaFET
function name:  (null)
number of ops:  21
compiled vars:  !0 = $fruit, !1 = $abc, !2 = $fff, !3 = $key, !4 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_REF                                               !1, !0
    5     2        INIT_FCALL                                               'reset'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    6     5      > JMP                                                      ->12
    7     6    >   ASSIGN                                                   !2, !1
    8     7        ROPE_INIT                                     4  ~10     !3
          8        ROPE_ADD                                      1  ~10     ~10, '+%3D%3E+'
          9        ROPE_ADD                                      2  ~10     ~10, !4
         10        ROPE_END                                      3  ~9      ~10, '%0A'
         11        ECHO                                                     ~9
    6    12    >   INIT_FCALL_BY_NAME                                       'each'
         13        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0  $12     
         15        FETCH_LIST_R                                     $13     $12, 0
         16        ASSIGN                                                   !3, $13
         17        FETCH_LIST_R                                     $15     $12, 1
         18        ASSIGN                                                   !4, $15
         19      > JMPNZ                                                    $12, ->6
    9    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.99 ms | 1395 KiB | 15 Q