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 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/DhLc0
function name:  (null)
number of ops:  22
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      'SimpleXMLElement'
         15        SEND_VAL_EX                                                  '%3Cr%2F%3E'
         16        DO_FCALL                                          0          
         17        SEND_VAR_NO_REF_EX                                           $9
         18        DO_FCALL                                          0          
    9    19        INIT_METHOD_CALL                                             !0, 'rewind'
         20        DO_FCALL                                          0          
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.33 ms | 3379 KiB | 14 Q