3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $obj->var1=1; $ao = new ArrayObject($obj); $i = $ao->getIterator(); $ao->offsetUnset($i->key()); $i->next(); ?> ===DONE===
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JHpm0
function name:  (null)
number of ops:  21
compiled vars:  !0 = $obj, !1 = $ao, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN_OBJ                                               !0, 'var1'
          4        OP_DATA                                                  1
    5     5        NEW                                              $7      'ArrayObject'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $7
    7     9        INIT_METHOD_CALL                                         !1, 'getIterator'
         10        DO_FCALL                                      0  $10     
         11        ASSIGN                                                   !2, $10
    9    12        INIT_METHOD_CALL                                         !1, 'offsetUnset'
         13        INIT_METHOD_CALL                                         !2, 'key'
         14        DO_FCALL                                      0  $12     
         15        SEND_VAR_NO_REF_EX                                       $12
         16        DO_FCALL                                      0          
   10    17        INIT_METHOD_CALL                                         !2, 'next'
         18        DO_FCALL                                      0          
   13    19        ECHO                                                     '%3D%3D%3DDONE%3D%3D%3D'
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.69 ms | 1394 KiB | 13 Q