3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = ['first' => '1', 'second' => '2', 'third' => '3']; foreach ( $list as $i ) { list ( $k, $v ) = each ( $i ); var_dump($k);var_dump($v); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/RuPfk
function name:  (null)
number of ops:  20
compiled vars:  !0 = $list, !1 = $i, !2 = $k, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $5      !0, ->18
          2    > > FE_FETCH_R                                               $5, !1, ->18
    6     3    >   INIT_FCALL_BY_NAME                                       'each'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $6      
          6        FETCH_LIST_R                                     $7      $6, 0
          7        ASSIGN                                                   !2, $7
          8        FETCH_LIST_R                                     $9      $6, 1
          9        ASSIGN                                                   !3, $9
         10        FREE                                                     $6
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
    5    17      > JMP                                                      ->2
         18    >   FE_FREE                                                  $5
    8    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.43 ms | 1399 KiB | 15 Q