3v4l.org

run code in 300+ PHP versions simultaneously
<?php $imp = new DOMImplementation(); $dom = $imp->createDocument('', '', $imp->createDocumentType('html')); $html = $dom->appendChild(new DOMElement('html')); $head = $html->appendChild(new DOMElement('head')); $meta = $head->appendChild(new DOMElement('meta')); $meta->setAttribute('http-equiv', 'Content-Type'); $meta->setAttribute('content', 'text/html; charset=UTF-8'); $head->appendChild(new DOMElement('title', '<b>Lorem ipsum</b>')); $body = $html->appendChild(new DOMElement('body')); $body->setAttribute('class', 'no-js'); $dom->formatOutput = FALSE; exit($dom->saveHTML());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/QZKYh
function name:  (null)
number of ops:  65
compiled vars:  !0 = $imp, !1 = $dom, !2 = $html, !3 = $head, !4 = $meta, !5 = $body
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $6      'DOMImplementation'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $6
    4     3        INIT_METHOD_CALL                                         !0, 'createDocument'
          4        SEND_VAL_EX                                              ''
          5        SEND_VAL_EX                                              ''
          6        INIT_METHOD_CALL                                         !0, 'createDocumentType'
          7        SEND_VAL_EX                                              'html'
          8        DO_FCALL                                      0  $9      
          9        SEND_VAR_NO_REF_EX                                       $9
         10        DO_FCALL                                      0  $10     
         11        ASSIGN                                                   !1, $10
    5    12        INIT_METHOD_CALL                                         !1, 'appendChild'
         13        NEW                                              $12     'DOMElement'
         14        SEND_VAL_EX                                              'html'
         15        DO_FCALL                                      0          
         16        SEND_VAR_NO_REF_EX                                       $12
         17        DO_FCALL                                      0  $14     
         18        ASSIGN                                                   !2, $14
    6    19        INIT_METHOD_CALL                                         !2, 'appendChild'
         20        NEW                                              $16     'DOMElement'
         21        SEND_VAL_EX                                              'head'
         22        DO_FCALL                                      0          
         23        SEND_VAR_NO_REF_EX                                       $16
         24        DO_FCALL                                      0  $18     
         25        ASSIGN                                                   !3, $18
    7    26        INIT_METHOD_CALL                                         !3, 'appendChild'
         27        NEW                                              $20     'DOMElement'
         28        SEND_VAL_EX                                              'meta'
         29        DO_FCALL                                      0          
         30        SEND_VAR_NO_REF_EX                                       $20
         31        DO_FCALL                                      0  $22     
         32        ASSIGN                                                   !4, $22
    8    33        INIT_METHOD_CALL                                         !4, 'setAttribute'
         34        SEND_VAL_EX                                              'http-equiv'
         35        SEND_VAL_EX                                              'Content-Type'
         36        DO_FCALL                                      0          
    9    37        INIT_METHOD_CALL                                         !4, 'setAttribute'
         38        SEND_VAL_EX                                              'content'
         39        SEND_VAL_EX                                              'text%2Fhtml%3B+charset%3DUTF-8'
         40        DO_FCALL                                      0          
   10    41        INIT_METHOD_CALL                                         !3, 'appendChild'
         42        NEW                                              $26     'DOMElement'
         43        SEND_VAL_EX                                              'title'
         44        SEND_VAL_EX                                              '%3Cb%3ELorem+ipsum%3C%2Fb%3E'
         45        DO_FCALL                                      0          
         46        SEND_VAR_NO_REF_EX                                       $26
         47        DO_FCALL                                      0          
   11    48        INIT_METHOD_CALL                                         !2, 'appendChild'
         49        NEW                                              $29     'DOMElement'
         50        SEND_VAL_EX                                              'body'
         51        DO_FCALL                                      0          
         52        SEND_VAR_NO_REF_EX                                       $29
         53        DO_FCALL                                      0  $31     
         54        ASSIGN                                                   !5, $31
   12    55        INIT_METHOD_CALL                                         !5, 'setAttribute'
         56        SEND_VAL_EX                                              'class'
         57        SEND_VAL_EX                                              'no-js'
         58        DO_FCALL                                      0          
   13    59        ASSIGN_OBJ                                               !1, 'formatOutput'
         60        OP_DATA                                                  <false>
   14    61        INIT_METHOD_CALL                                         !1, 'saveHTML'
         62        DO_FCALL                                      0  $35     
         63      > EXIT                                                     $35
         64*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.51 ms | 1399 KiB | 13 Q