3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrasy=array('1'=>'mela','2'=>'pera','3'=>'banana'); while ($fruit_name = current($arrasy)) { echo key($arrasy).'<br />'; next($arrasy); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
Branch analysis from position: 2
filename:       /in/934Di
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arrasy, !1 = $fruit_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > JMP                                                      ->10
    5     2    >   INIT_FCALL                                               'key'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        CONCAT                                           ~4      $3, '%3Cbr+%2F%3E'
          6        ECHO                                                     ~4
    7     7        INIT_FCALL                                               'next'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
    3    10    >   INIT_FCALL                                               'current'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        ASSIGN                                           ~7      !1, $6
         14      > JMPNZ                                                    ~7, ->2
    8    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.18 ms | 1394 KiB | 19 Q