3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.13 ms | 1395 KiB | 18 Q