3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.28 ms | 1393 KiB | 16 Q