3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a' => 'b'); for(reset($arr); list($k,$v) = each($arr);) { var_dump($k, $v); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
Branch analysis from position: 5
filename:       /in/7BGL6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr, !1 = $k, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'reset'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
          4      > JMP                                                      ->9
    5     5    >   INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                                 
    4     9    >   INIT_FCALL_BY_NAME                                       'each'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $6      
         12        FETCH_LIST_R                                     $7      $6, 0
         13        ASSIGN                                                   !1, $7
         14        FETCH_LIST_R                                     $9      $6, 1
         15        ASSIGN                                                   !2, $9
         16      > JMPNZ                                                    $6, ->5
    6    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.65 ms | 1395 KiB | 20 Q