3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstring = '<root> <origen>...</origen> <trend> <zone id="809" name="AGi"> <subzone id="809" name="AGi"> <text> I want this text. </text> </subzone> </zone> </trend> </root>'; $xml = simplexml_load_string($xmlstring, "SimpleXMLElement", LIBXML_NOCDATA); echo $xml->trend->zone->subzone->text;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O16O1
function name:  (null)
number of ops:  13
compiled vars:  !0 = $xmlstring, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Croot%3E%0A%3Corigen%3E...%3C%2Forigen%3E%0A%3Ctrend%3E%0A++++%3Czone+id%3D%22809%22+name%3D%22AGi%22%3E%0A++++++%3Csubzone+id%3D%22809%22+name%3D%22AGi%22%3E%0A++++++++%3Ctext%3E%0A++++++++++I+want+this+text.%0A++++++++%3C%2Ftext%3E%0A++++++%3C%2Fsubzone%3E%0A++++%3C%2Fzone%3E%0A%3C%2Ftrend%3E%0A%3C%2Froot%3E'
   14     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'SimpleXMLElement'
          4        SEND_VAL                                                 16384
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
   15     7        FETCH_OBJ_R                                      ~5      !1, 'trend'
          8        FETCH_OBJ_R                                      ~6      ~5, 'zone'
          9        FETCH_OBJ_R                                      ~7      ~6, 'subzone'
         10        FETCH_OBJ_R                                      ~8      ~7, 'text'
         11        ECHO                                                     ~8
   16    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.54 ms | 1009 KiB | 14 Q