3v4l.org

run code in 300+ 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 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/C962A
function name:  (null)
number of ops:  27
compiled vars:  !0 = $mi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'SimpleXMLElement'
          2        DO_ICALL                                         $1      
          3        BOOL_NOT                                         ~2      $1
          4      > JMPNZ_EX                                         ~2      ~2, ->10
          5    >   INIT_FCALL                                               'class_exists'
          6        SEND_VAL                                                 'MultipleIterator'
          7        DO_ICALL                                         $3      
          8        BOOL_NOT                                         ~4      $3
          9        BOOL                                             ~2      ~4
         10    > > JMPZ                                                     ~2, ->12
    4    11    > > EXIT                                                     'not+applicable'
    7    12    >   NEW                                              $5      'MultipleIterator'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !0, $5
    8    15        INIT_METHOD_CALL                                         !0, 'attachIterator'
         16        NEW                                              $8      'IteratorIterator'
         17        NEW                                              $9      'SimpleXMLElement'
         18        SEND_VAL_EX                                              '%3Cr%2F%3E'
         19        DO_FCALL                                      0          
         20        SEND_VAR_NO_REF_EX                                       $9
         21        DO_FCALL                                      0          
         22        SEND_VAR_NO_REF_EX                                       $8
         23        DO_FCALL                                      0          
    9    24        INIT_METHOD_CALL                                         !0, 'rewind'
         25        DO_FCALL                                      0          
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.8 ms | 1395 KiB | 15 Q