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); print_r(count($i)); print_r($i->current());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tiefb
function name:  (null)
number of ops:  28
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        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'print_r'
         19        COUNT                                            ~8      !0
         20        SEND_VAL                                                 ~8
         21        DO_ICALL                                                 
    9    22        INIT_FCALL                                               'print_r'
         23        INIT_METHOD_CALL                                         !0, 'current'
         24        DO_FCALL                                      0  $10     
         25        SEND_VAR                                                 $10
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.55 ms | 1395 KiB | 15 Q