3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'a', 'b', 'c' ]; while($letter=key($arr)) { echo $letter; next($arr); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
Branch analysis from position: 2
filename:       /in/RktBM
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr, !1 = $letter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1      > JMP                                                      ->6
   10     2    >   ECHO                                                     !1
   11     3        INIT_FCALL                                               'next'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    9     6    >   INIT_FCALL                                               'key'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        ASSIGN                                           ~5      !1, $4
         10      > JMPNZ                                                    ~5, ->2
   12    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
224.83 ms | 1394 KiB | 17 Q