3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.54 ms | 1392 KiB | 13 Q