3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.23 ms | 1436 KiB | 14 Q