3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = new ArrayIterator(); $i->offsetSet(0, 0); print_r($i->current()); $i->next(); print_r($i); print_r($i->current()); print_r(count($i));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fYDpM
function name:  (null)
number of ops:  27
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ArrayIterator'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_METHOD_CALL                                         !0, 'offsetSet'
          4        SEND_VAL_EX                                              0
          5        SEND_VAL_EX                                              0
          6        DO_FCALL                                      0          
    5     7        INIT_FCALL                                               'print_r'
          8        INIT_METHOD_CALL                                         !0, 'current'
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    7    12        INIT_METHOD_CALL                                         !0, 'next'
         13        DO_FCALL                                      0          
    9    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   10    17        INIT_FCALL                                               'print_r'
         18        INIT_METHOD_CALL                                         !0, 'current'
         19        DO_FCALL                                      0  $9      
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                                 
   11    22        INIT_FCALL                                               'print_r'
         23        COUNT                                            ~11     !0
         24        SEND_VAL                                                 ~11
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.67 ms | 1395 KiB | 15 Q