3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.11 ms | 1396 KiB | 15 Q