3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $copyright = $dom->createElement('copyright', '&#169;'); $dom->appendChild($copyright); echo htmlspecialchars($dom->saveXML());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RrLqB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dom, !1 = $copyright
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        INIT_METHOD_CALL                                         !0, 'createElement'
          4        SEND_VAL_EX                                              'copyright'
          5        SEND_VAL_EX                                              '%26%23169%3B'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    7     8        INIT_METHOD_CALL                                         !0, 'appendChild'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0          
    9    11        INIT_FCALL                                               'htmlspecialchars'
         12        INIT_METHOD_CALL                                         !0, 'saveXML'
         13        DO_FCALL                                      0  $8      
         14        SEND_VAR                                                 $8
         15        DO_ICALL                                         $9      
         16        ECHO                                                     $9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.69 ms | 1398 KiB | 15 Q