3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ArrayIterator(array(1)); var_dump($arr->current()); $iter = new LimitIterator($arr, 0, 1); var_dump($arr->current());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lMlMA
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arr, !1 = $iter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'ArrayIterator'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'current'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    5     9        NEW                                              $6      'LimitIterator'
         10        SEND_VAR_EX                                              !0
         11        SEND_VAL_EX                                              0
         12        SEND_VAL_EX                                              1
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $6
    6    15        INIT_FCALL                                               'var_dump'
         16        INIT_METHOD_CALL                                         !0, 'current'
         17        DO_FCALL                                      0  $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.78 ms | 1399 KiB | 15 Q