3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.75 ms | 1403 KiB | 13 Q