3v4l.org

run code in 300+ PHP versions simultaneously
<?php $I = new ArrayIterator(array(1)); $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/BKarT
function name:  (null)
number of ops:  28
compiled vars:  !0 = $I
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'ArrayIterator'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        INIT_METHOD_CALL                                         !0, 'rewind'
          5        DO_FCALL                                      0          
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !0, 'current'
          8        DO_FCALL                                      0  $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
    5    11        INIT_METHOD_CALL                                         !0, 'next'
         12        DO_FCALL                                      0          
    6    13        INIT_FCALL                                               'var_dump'
         14        INIT_METHOD_CALL                                         !0, 'current'
         15        DO_FCALL                                      0  $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                                 
    7    18        INIT_METHOD_CALL                                         !0, 'next'
         19        DO_FCALL                                      0          
    8    20        INIT_FCALL                                               'var_dump'
         21        INIT_METHOD_CALL                                         !0, 'current'
         22        DO_FCALL                                      0  $11     
         23        SEND_VAR                                                 $11
         24        DO_ICALL                                                 
    9    25        INIT_METHOD_CALL                                         !0, 'next'
         26        DO_FCALL                                      0          
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.51 ms | 1395 KiB | 15 Q