3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr = " <employee> <employeename>test</employeename> <employeeaddress>test123</employeeaddress> <SSN>12343456</SSN> <company>TOPXML</company> </employee> "; $dom = new \DOMDocument; $dom->loadXML($xmlstr); $dom->normalize(); echo $dom->C14N(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QOf60
function name:  (null)
number of ops:  13
compiled vars:  !0 = $xmlstr, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%0A++++%3Cemployee%3E+%0A++++++++%3Cemployeename%3Etest%3C%2Femployeename%3E+%0A++++++++%3Cemployeeaddress%3Etest123%3C%2Femployeeaddress%3E+%0A++++++++%3CSSN%3E12343456%3C%2FSSN%3E+%0A++++++++%3Ccompany%3ETOPXML%3C%2Fcompany%3E+%0A++++%3C%2Femployee%3E+%0A'
   11     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   12     4        INIT_METHOD_CALL                                         !1, 'loadXML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   14     7        INIT_METHOD_CALL                                         !1, 'normalize'
          8        DO_FCALL                                      0          
   16     9        INIT_METHOD_CALL                                         !1, 'C14N'
         10        DO_FCALL                                      0  $8      
         11        ECHO                                                     $8
   17    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.21 ms | 1393 KiB | 13 Q