3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = new ArrayIterator(range(5,10)); $arr->seek(1); // expected: two, output: two echo $arr->current();
based on 8MWM6
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M03nj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $1      :-5
         1        INIT_FCALL                                               'range'
         2        SEND_VAL                                                 5
         3        SEND_VAL                                                 10
         4        DO_ICALL                                         $2      
         5        SEND_VAR_NO_REF_EX                                       $2
         6        DO_FCALL                                      0          
         7        ASSIGN                                                   !0, $1
   5     8        INIT_METHOD_CALL                                         !0, 'seek'
         9        SEND_VAL_EX                                              1
        10        DO_FCALL                                      0          
   6    11        INIT_METHOD_CALL                                         !0, 'current'
        12        DO_FCALL                                      0  $6      
        13        ECHO                                                     $6
        14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0