3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrayobject = new ArrayObject(); $arrayobject[] = 'zero'; $arrayobject[] = 'one'; $iterator = $arrayobject->getIterator(); echo $iterator->current() . "\n"; $iterator->next(); $iterator->next(); $iterator->next(); $iterator->next(); $iterator->next(); $iterator->next(); $iterator->next(); echo $iterator->current() . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vp9Sa
function name:  (null)
number of ops:  33
compiled vars:  !0 = $arrayobject, !1 = $iterator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'ArrayObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  'zero'
    6     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  'one'
    8     7        INIT_METHOD_CALL                                         !0, 'getIterator'
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
   10    10        INIT_METHOD_CALL                                         !1, 'current'
         11        DO_FCALL                                      0  $9      
         12        CONCAT                                           ~10     $9, '%0A'
         13        ECHO                                                     ~10
   11    14        INIT_METHOD_CALL                                         !1, 'next'
         15        DO_FCALL                                      0          
   12    16        INIT_METHOD_CALL                                         !1, 'next'
         17        DO_FCALL                                      0          
   13    18        INIT_METHOD_CALL                                         !1, 'next'
         19        DO_FCALL                                      0          
   14    20        INIT_METHOD_CALL                                         !1, 'next'
         21        DO_FCALL                                      0          
   15    22        INIT_METHOD_CALL                                         !1, 'next'
         23        DO_FCALL                                      0          
   16    24        INIT_METHOD_CALL                                         !1, 'next'
         25        DO_FCALL                                      0          
   17    26        INIT_METHOD_CALL                                         !1, 'next'
         27        DO_FCALL                                      0          
   18    28        INIT_METHOD_CALL                                         !1, 'current'
         29        DO_FCALL                                      0  $18     
         30        CONCAT                                           ~19     $18, '%0A'
         31        ECHO                                                     ~19
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.87 ms | 1395 KiB | 13 Q