3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new ArrayIterator(['foo', 'bar']); $it->rewind(); $el = $it->current(); var_dump($el);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V2hHv
function name:  (null)
number of ops:  13
compiled vars:  !0 = $it, !1 = $el
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'ArrayIterator'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    5     4        INIT_METHOD_CALL                                         !0, 'rewind'
          5        DO_FCALL                                      0          
    6     6        INIT_METHOD_CALL                                         !0, 'current'
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !1, $6
    8     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.73 ms | 1398 KiB | 15 Q