3v4l.org

run code in 500+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $xml = simplexml_load_string("<div>444444444444<a href=\"https://zupa.com?a=1&b=2\">test</a>33333333</div>", "SimpleXMLElement", LIBXML_NOWARNING | LIBXML_NOERROR); $xmlOutput = dom_import_simplexml($xml); $xmlOutput = $xmlOutput->ownerDocument->saveXML($xmlOutput->ownerDocument->documentElement); echo $xmlOutput; echo "11111";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EDULB
function name:  (null)
number of ops:  21
compiled vars:  !0 = $xml, !1 = $xmlOutput
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'simplexml_load_string'
          1        SEND_VAL                                                     '%3Cdiv%3E444444444444%3Ca+href%3D%22https%3A%2F%2Fzupa.com%3Fa%3D1%26b%3D2%22%3Etest%3C%2Fa%3E33333333%3C%2Fdiv%3E'
    5     2        SEND_VAL                                                     'SimpleXMLElement'
          3        SEND_VAL                                                     96
    4     4        DO_ICALL                                             $2      
          5        ASSIGN                                                       !0, $2
    6     6        INIT_FCALL                                                   'dom_import_simplexml'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                             $4      
          9        ASSIGN                                                       !1, $4
    7    10        FETCH_OBJ_R                                          ~6      !1, 'ownerDocument'
         11        INIT_METHOD_CALL                                             ~6, 'saveXML'
         12        CHECK_FUNC_ARG                                               
         13        FETCH_OBJ_FUNC_ARG                                   $7      !1, 'ownerDocument'
         14        FETCH_OBJ_FUNC_ARG                                   $8      $7, 'documentElement'
         15        SEND_FUNC_ARG                                                $8
         16        DO_FCALL                                          0  $9      
         17        ASSIGN                                                       !1, $9
    8    18        ECHO                                                         !1
    9    19        ECHO                                                         '11111'
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
294.91 ms | 3482 KiB | 15 Q