3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.7 ms | 1399 KiB | 18 Q