3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.1 ms | 1394 KiB | 13 Q