3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1,2,3,4,5,6,7,8,9,0); while ($item = $arr->next()) { echo $item; }
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 = 7, Position 2 = 2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
Branch analysis from position: 2
filename:       /in/RgbHZ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $arr, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > JMP                                                      ->3
    5     2    >   ECHO                                                     !1
    4     3    >   INIT_METHOD_CALL                                         !0, 'next'
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                           ~4      !1, $3
          6      > JMPNZ                                                    ~4, ->2
    6     7    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.08 ms | 1393 KiB | 13 Q