3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xs = array(3, 4, 5, 7); $it = $xs->getIterator(); $it->rewind(); printf("%d\n", current($it));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dM4a0
function name:  (null)
number of ops:  14
compiled vars:  !0 = $xs, !1 = $it
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_METHOD_CALL                                         !0, 'getIterator'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !1, $3
    5     4        INIT_METHOD_CALL                                         !1, 'rewind'
          5        DO_FCALL                                      0          
    6     6        INIT_FCALL                                               'printf'
          7        SEND_VAL                                                 '%25d%0A'
          8        INIT_FCALL                                               'current'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.93 ms | 1394 KiB | 17 Q