3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sxe = new SimpleXMLElement('<foo><bar baz="quux">hello</bar> world<![CDATA[!]]></foo>'); $node = dom_import_simplexml($sxe); echo $node->textContent;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/grVXH
function name:  (null)
number of ops:  11
compiled vars:  !0 = $sxe, !1 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Cfoo%3E%3Cbar+baz%3D%22quux%22%3Ehello%3C%2Fbar%3E+world%3C%21%5BCDATA%5B%21%5D%5D%3E%3C%2Ffoo%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'dom_import_simplexml'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        FETCH_OBJ_R                                      ~7      !1, 'textContent'
          9        ECHO                                                     ~7
    6    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.79 ms | 939 KiB | 16 Q