3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 1); $d = new DOMDocument(); $html = "<!DOCTYPE html><html><head><meta charset='UTF-8'></head><body>U+0000 <span>\x0</span></body></html>"; $d->loadHTML($html); print($d->saveHTML());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZkKkD
function name:  (null)
number of ops:  15
compiled vars:  !0 = $d, !1 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    4     4        NEW                                              $3      'DOMDocument'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
    5     7        ASSIGN                                                   !1, '%3C%21DOCTYPE+html%3E%3Chtml%3E%3Chead%3E%3Cmeta+charset%3D%27UTF-8%27%3E%3C%2Fhead%3E%3Cbody%3EU%2B0000+%3Cspan%3E%00%3C%2Fspan%3E%3C%2Fbody%3E%3C%2Fhtml%3E'
    6     8        INIT_METHOD_CALL                                         !0, 'loadHTML'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0          
    7    11        INIT_METHOD_CALL                                         !0, 'saveHTML'
         12        DO_FCALL                                      0  $8      
         13        ECHO                                                     $8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.78 ms | 1394 KiB | 15 Q