3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root><node1>content</node1></root>"; $sxe = new SimpleXMLElement($xml); print $sxe->asXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0r3Yk
function name:  (null)
number of ops:  9
compiled vars:  !0 = $xml, !1 = $sxe
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Croot%3E%3Cnode1%3Econtent%3C%2Fnode1%3E%3C%2Froot%3E'
    3     1        NEW                                              $3      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    4     5        INIT_METHOD_CALL                                         !1, 'asXML'
          6        DO_FCALL                                      0  $6      
          7        ECHO                                                     $6
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.56 ms | 1392 KiB | 13 Q