3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.8 ms | 1394 KiB | 17 Q