3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml="<root><node1>content</node1></root>"; $sxe=new simpleXMLElement($xml); $xml="<root><node1>content</node1></root>"; $sxe=simplexml_load_string($xml); $sxe=simplexml_load_file("filename.xml"); print $sxe->asXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AkWBZ
function name:  (null)
number of ops:  18
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
    5     5        ASSIGN                                                   !0, '%3Croot%3E%3Cnode1%3Econtent%3C%2Fnode1%3E%3C%2Froot%3E'
    6     6        INIT_FCALL                                               'simplexml_load_string'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
    8    10        INIT_FCALL                                               'simplexml_load_file'
         11        SEND_VAL                                                 'filename.xml'
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !1, $9
   10    14        INIT_METHOD_CALL                                         !1, 'asXML'
         15        DO_FCALL                                      0  $11     
         16        ECHO                                                     $11
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.43 ms | 1394 KiB | 17 Q