3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlIterator = new SimpleXMLIterator('<books><book>PHP Basics</book><book>XML Basics</book></books>'); $xmlIterator->rewind(); var_dump($xmlIterator->current());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtkAL
function name:  (null)
number of ops:  12
compiled vars:  !0 = $xmlIterator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SimpleXMLIterator'
          1        SEND_VAL_EX                                              '%3Cbooks%3E%3Cbook%3EPHP+Basics%3C%2Fbook%3E%3Cbook%3EXML+Basics%3C%2Fbook%3E%3C%2Fbooks%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        INIT_METHOD_CALL                                         !0, 'rewind'
          5        DO_FCALL                                      0          
    5     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !0, 'current'
          8        DO_FCALL                                      0  $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.9 ms | 1385 KiB | 15 Q