3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('a' => 'val1', 'b' => array('c' => 68)); foreach (new RecursiveIteratorIterator(new RecursiveArrayIterator(new ArrayIterator($array))) as $k => $v) { $$k = $v; } echo $a, "\n"; echo $c, "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/ijXi8
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $v, !2 = $k, !3 = $a, !4 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $6      'RecursiveIteratorIterator'
          2        NEW                                              $7      'RecursiveArrayIterator'
          3        NEW                                              $8      'ArrayIterator'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $8
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $7
          9        DO_FCALL                                      0          
         10      > FE_RESET_R                                       $12     $6, ->16
         11    > > FE_FETCH_R                                       ~13     $12, !1, ->16
         12    >   ASSIGN                                                   !2, ~13
    5    13        FETCH_W                      local               $15     !2
         14        ASSIGN                                                   $15, !1
    4    15      > JMP                                                      ->11
         16    >   FE_FREE                                                  $12
    8    17        ECHO                                                     !3
         18        ECHO                                                     '%0A'
    9    19        ECHO                                                     !4
         20        ECHO                                                     '%0A'
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.78 ms | 1394 KiB | 13 Q