3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <a> <d attr="attr"></d> <c></c> <b>success</b> </a> XML; $xml = new SimpleXMLElement($string); echo $string.'<br />'; echo $xml->asXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IOP8u
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ca%3E%0A%3Cd+attr%3D%22attr%22%3E%3C%2Fd%3E%0A%09%3Cc%3E%3C%2Fc%3E%0A%09%3Cb%3Esuccess%3C%2Fb%3E%0A%0A%3C%2Fa%3E'
   11     1        NEW                                              $3      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   12     5        CONCAT                                           ~6      !0, '%3Cbr+%2F%3E'
          6        ECHO                                                     ~6
   13     7        INIT_METHOD_CALL                                         !1, 'asXML'
          8        DO_FCALL                                      0  $7      
          9        ECHO                                                     $7
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.66 ms | 1392 KiB | 13 Q