3v4l.org

run code in 500+ PHP versions simultaneously
<?php if (!class_exists('SimpleXMLElement') || !class_exists('MultipleIterator')) { die('not applicable'); } $mi = new MultipleIterator(); $mi->attachIterator(new IteratorIterator(new SimpleXMLElement('<r/>'))); $mi->rewind();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/C962A
function name:  (null)
number of ops:  25
compiled vars:  !0 = $mi
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FRAMELESS_ICALL_1                class_exists        ~1      'SimpleXMLElement'
          1        BOOL_NOT                                             ~2      ~1
          2      > JMPNZ_EX                                             ~2      ~2, ->6
          3    >   FRAMELESS_ICALL_1                class_exists        ~3      'MultipleIterator'
          4        BOOL_NOT                                             ~4      ~3
          5        BOOL                                                 ~2      ~4
          6    > > JMPZ                                                         ~2, ->10
    4     7    > > INIT_FCALL                                                   'exit'
          8*       SEND_VAL                                                     'not+applicable'
          9*       DO_ICALL                                                     
    7    10    >   NEW                                                  $6      'MultipleIterator'
         11        DO_FCALL                                          0          
         12        ASSIGN                                                       !0, $6
    8    13        INIT_METHOD_CALL                                             !0, 'attachIterator'
         14        NEW                                                  $9      'IteratorIterator'
         15        NEW                                                  $10     'SimpleXMLElement'
         16        SEND_VAL_EX                                                  '%3Cr%2F%3E'
         17        DO_FCALL                                          0          
         18        SEND_VAR_NO_REF_EX                                           $10
         19        DO_FCALL                                          0          
         20        SEND_VAR_NO_REF_EX                                           $9
         21        DO_FCALL                                          0          
    9    22        INIT_METHOD_CALL                                             !0, 'rewind'
         23        DO_FCALL                                          0          
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
213 ms | 3277 KiB | 14 Q