3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<'EOT' <?xml version="1.0" encoding="UTF-8"?> <package xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance"> </package> EOT ; $dom = new DOMDocument(); echo "\n\n", $dom->loadXML($xml) ? 'loaded' : 'not loaded';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L8750
function name:  (null)
number of ops:  14
compiled vars:  !0 = $xml, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Cpackage+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-+instance%22%3E%0A%3C%2Fpackage%3E'
   10     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   11     4        ECHO                                                     '%0A%0A'
          5        INIT_METHOD_CALL                                         !1, 'loadXML'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $6      
          8      > JMPZ                                                     $6, ->11
          9    >   QM_ASSIGN                                        ~7      'loaded'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~7      'not+loaded'
         12    >   ECHO                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.66 ms | 1422 KiB | 13 Q