3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<XML <?xml version="1.0" encoding="iso-8859-1"?> <div>This is a non-breaking space.</div> XML; $dd1 = new DOMDocument(); $k = $dd1->loadXML($str); var_dump($k); echo $doc->saveXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JsmrZ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $dd1, !2 = $k, !3 = $doc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%0A%3Cdiv%3EThis+is+a+non-breaking+space.%3C%2Fdiv%3E'
    8     1        NEW                                              $5      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $5
    9     4        INIT_METHOD_CALL                                         !1, 'loadXML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $8      
          7        ASSIGN                                                   !2, $8
   11     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
   13    11        INIT_METHOD_CALL                                         !3, 'saveXML'
         12        DO_FCALL                                      0  $11     
         13        ECHO                                                     $11
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.97 ms | 1385 KiB | 15 Q