3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0"?><example><this>is</this> and <that>is</that></example>'; $document = new DOMDocument(); $document->formatOutput = true; $document->loadXML($xml); echo $document->saveXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ElJme
function name:  (null)
number of ops:  13
compiled vars:  !0 = $xml, !1 = $document
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22%3F%3E%3Cexample%3E%3Cthis%3Eis%3C%2Fthis%3E+and+%3Cthat%3Eis%3C%2Fthat%3E%3C%2Fexample%3E'
    5     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    6     4        ASSIGN_OBJ                                               !1, 'formatOutput'
          5        OP_DATA                                                  <true>
    7     6        INIT_METHOD_CALL                                         !1, 'loadXML'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
    9     9        INIT_METHOD_CALL                                         !1, 'saveXML'
         10        DO_FCALL                                      0  $8      
         11        ECHO                                                     $8
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.46 ms | 1393 KiB | 13 Q