3v4l.org

run code in 300+ PHP versions simultaneously
<?php $I = new IteratorIterator(new ArrayIterator(array(1,2,3))); $I->rewind(); var_dump($I->current()); $I->next(); var_dump($I->current()); $I->next(); var_dump($I->current()); $I->next();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WKZQ9
function name:  (null)
number of ops:  31
compiled vars:  !0 = $I
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'IteratorIterator'
          1        NEW                                              $2      'ArrayIterator'
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $2
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $1
    3     7        INIT_METHOD_CALL                                         !0, 'rewind'
          8        DO_FCALL                                      0          
    4     9        INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !0, 'current'
         11        DO_FCALL                                      0  $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
    5    14        INIT_METHOD_CALL                                         !0, 'next'
         15        DO_FCALL                                      0          
    6    16        INIT_FCALL                                               'var_dump'
         17        INIT_METHOD_CALL                                         !0, 'current'
         18        DO_FCALL                                      0  $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                                 
    7    21        INIT_METHOD_CALL                                         !0, 'next'
         22        DO_FCALL                                      0          
    8    23        INIT_FCALL                                               'var_dump'
         24        INIT_METHOD_CALL                                         !0, 'current'
         25        DO_FCALL                                      0  $13     
         26        SEND_VAR                                                 $13
         27        DO_ICALL                                                 
    9    28        INIT_METHOD_CALL                                         !0, 'next'
         29        DO_FCALL                                      0          
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.82 ms | 1395 KiB | 15 Q