3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_content=' <script> //<!-- a = "123"; b = "</script>"; c = "456; //--> </script> '; $d=new DOMDocument(); $d->loadXml($test_content); echo $d->saveXml();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WuNpg
function name:  (null)
number of ops:  11
compiled vars:  !0 = $test_content, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A%0A%3Cscript%3E%0A%2F%2F%3C%21--%0A++++a+%3D+%22123%22%3B%0A++++b+%3D+%22%3C%2Fscript%3E%22%3B%0A++++c+%3D+%22456%3B%0A%2F%2F--%3E%0A%3C%2Fscript%3E%0A%0A'
   15     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   16     4        INIT_METHOD_CALL                                         !1, 'loadXml'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   17     7        INIT_METHOD_CALL                                         !1, 'saveXml'
          8        DO_FCALL                                      0  $7      
          9        ECHO                                                     $7
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.49 ms | 1384 KiB | 13 Q