3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = new ArrayIterator(range(5,10)); $arr->seek(1); // expected: two, output: two echo $arr->current();
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      'ArrayIterator'
          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 8.0.0


preferences:
173.28 ms | 1394 KiB | 15 Q