3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("A","B","C"); $iterator = new RecursiveIteratorIterator((new RecursiveArrayIterator($array))->rewind()); while ( $iterator->valid() ) { echo $iterator->current() ; $iterator->next(); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
Branch analysis from position: 11
filename:       /in/IZSjG
function name:  (null)
number of ops:  20
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      'RecursiveIteratorIterator'
          2        NEW                                              $4      'RecursiveArrayIterator'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $4, 'rewind'
          6        DO_FCALL                                      0  $6      
          7        SEND_VAR_NO_REF_EX                                       $6
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $3
    4    10      > JMP                                                      ->16
    5    11    >   INIT_METHOD_CALL                                         !1, 'current'
         12        DO_FCALL                                      0  $9      
         13        ECHO                                                     $9
    6    14        INIT_METHOD_CALL                                         !1, 'next'
         15        DO_FCALL                                      0          
    4    16    >   INIT_METHOD_CALL                                         !1, 'valid'
         17        DO_FCALL                                      0  $11     
         18      > JMPNZ                                                    $11, ->11
    8    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.72 ms | 1394 KiB | 13 Q