3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( 'abc' => 123, 'def' => 456, 'test' => array( 123 => 'hip', 'hop' => array( 'tip' => 'top', 'top' => null ) ) ); while (list($old, $arr) = each($test)) { if (is_array($arr)) { unset($test[$old]); foreach ($arr as $new => $v) { $test["$old.$new"] = $v; } } } var_dump($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
Branch analysis from position: 2
Branch analysis from position: 14
Branch analysis from position: 15
filename:       /in/851ov
function name:  (null)
number of ops:  27
compiled vars:  !0 = $test, !1 = $arr, !2 = $old, !3 = $v, !4 = $new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1      > JMP                                                      ->15
   16     2    >   TYPE_CHECK                                  128          !1
          3      > JMPZ                                                     ~6, ->15
   17     4    >   UNSET_DIM                                                !0, !2
   18     5      > FE_RESET_R                                       $7      !1, ->14
          6    > > FE_FETCH_R                                       ~8      $7, !3, ->14
          7    >   ASSIGN                                                   !4, ~8
   19     8        ROPE_INIT                                     3  ~11     !2
          9        ROPE_ADD                                      1  ~11     ~11, '.'
         10        ROPE_END                                      2  ~10     ~11, !4
         11        ASSIGN_DIM                                               !0, ~10
         12        OP_DATA                                                  !3
   18    13      > JMP                                                      ->6
         14    >   FE_FREE                                                  $7
   15    15    >   INIT_FCALL_BY_NAME                                       'each'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $14     
         18        FETCH_LIST_R                                     $15     $14, 0
         19        ASSIGN                                                   !2, $15
         20        FETCH_LIST_R                                     $17     $14, 1
         21        ASSIGN                                                   !1, $17
         22      > JMPNZ                                                    $14, ->2
   24    23    >   INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.92 ms | 1400 KiB | 15 Q