3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = new ArrayIterator(); $i->offsetSet(0, 0); $i->offsetSet(100, 100); $i->offsetSet(200, FALSE); print_r($i->key()); print_r(count($i));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bpgg3
function name:  (null)
number of ops:  25
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_METHOD_CALL                                         !0, 'offsetSet'
          8        SEND_VAL_EX                                              100
          9        SEND_VAL_EX                                              100
         10        DO_FCALL                                      0          
    6    11        INIT_METHOD_CALL                                         !0, 'offsetSet'
         12        SEND_VAL_EX                                              200
         13        SEND_VAL_EX                                              <false>
         14        DO_FCALL                                      0          
    7    15        INIT_FCALL                                               'print_r'
         16        INIT_METHOD_CALL                                         !0, 'key'
         17        DO_FCALL                                      0  $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                                 
    8    20        INIT_FCALL                                               'print_r'
         21        COUNT                                            ~9      !0
         22        SEND_VAL                                                 ~9
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.02 ms | 1395 KiB | 15 Q