3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xml = "<root><a><aa></aa></a></root>"; $xml = simplexml_load_string($xml); foreach ($xml as $tag => $child) { unset($xml->{$tag}); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/edMDh
function name:  (null)
number of ops:  12
compiled vars:  !0 = $xml, !1 = $child, !2 = $tag
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%3Croot%3E%3Ca%3E%3Caa%3E%3C%2Faa%3E%3C%2Fa%3E%3C%2Froot%3E'
    3     1        INIT_FCALL                                                   'simplexml_load_string'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !0, $4
    5     5      > FE_RESET_R                                           $6      !0, ->10
          6    > > FE_FETCH_R                                           ~7      $6, !1, ->10
          7    >   ASSIGN                                                       !2, ~7
    6     8        UNSET_OBJ                                                    !0, !2
    5     9      > JMP                                                          ->6
         10    >   FE_FREE                                                      $6
    7    11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.46 ms | 3332 KiB | 14 Q