3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("A","B","C"); $iterator = new RecursiveArrayIterator($array); while ( $iterator->valid() ) { echo $iterator->current() ; $iterator->next(); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/JnU1C
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $iterator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        NEW                                              $3      'RecursiveArrayIterator'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    4     5      > JMP                                                      ->11
    5     6    >   INIT_METHOD_CALL                                         !1, 'current'
          7        DO_FCALL                                      0  $6      
          8        ECHO                                                     $6
    6     9        INIT_METHOD_CALL                                         !1, 'next'
         10        DO_FCALL                                      0          
    4    11    >   INIT_METHOD_CALL                                         !1, 'valid'
         12        DO_FCALL                                      0  $8      
         13      > JMPNZ                                                    $8, ->6
    8    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.01 ms | 933 KiB | 14 Q