3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument(); $head = $doc->createElement('head'); $head = $doc->appendChild($head); $title = $doc->createElement('title'); $title = $doc->appendChild($title); $text = $doc->createTextNode('Это заголовок'); $text = $title->appendChild($text); $root2 = $doc->createElement('html'); $root2 = $doc->insertBefore($root2, $head); $nodeList = $doc->childNodes; get_class($root2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nVCKM
function name:  (null)
number of ops:  41
compiled vars:  !0 = $doc, !1 = $head, !2 = $title, !3 = $text, !4 = $root2, !5 = $nodeList
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $6      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $6
    5     3        INIT_METHOD_CALL                                         !0, 'createElement'
          4        SEND_VAL_EX                                              'head'
          5        DO_FCALL                                      0  $9      
          6        ASSIGN                                                   !1, $9
    6     7        INIT_METHOD_CALL                                         !0, 'appendChild'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $11     
         10        ASSIGN                                                   !1, $11
    8    11        INIT_METHOD_CALL                                         !0, 'createElement'
         12        SEND_VAL_EX                                              'title'
         13        DO_FCALL                                      0  $13     
         14        ASSIGN                                                   !2, $13
    9    15        INIT_METHOD_CALL                                         !0, 'appendChild'
         16        SEND_VAR_EX                                              !2
         17        DO_FCALL                                      0  $15     
         18        ASSIGN                                                   !2, $15
   11    19        INIT_METHOD_CALL                                         !0, 'createTextNode'
         20        SEND_VAL_EX                                              '%D0%AD%D1%82%D0%BE+%D0%B7%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BE%D0%BA'
         21        DO_FCALL                                      0  $17     
         22        ASSIGN                                                   !3, $17
   12    23        INIT_METHOD_CALL                                         !2, 'appendChild'
         24        SEND_VAR_EX                                              !3
         25        DO_FCALL                                      0  $19     
         26        ASSIGN                                                   !3, $19
   14    27        INIT_METHOD_CALL                                         !0, 'createElement'
         28        SEND_VAL_EX                                              'html'
         29        DO_FCALL                                      0  $21     
         30        ASSIGN                                                   !4, $21
   15    31        INIT_METHOD_CALL                                         !0, 'insertBefore'
         32        SEND_VAR_EX                                              !4
         33        SEND_VAR_EX                                              !1
         34        DO_FCALL                                      0  $23     
         35        ASSIGN                                                   !4, $23
   17    36        FETCH_OBJ_R                                      ~25     !0, 'childNodes'
         37        ASSIGN                                                   !5, ~25
   19    38        GET_CLASS                                        ~27     !4
         39        FREE                                                     ~27
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.3 ms | 1395 KiB | 13 Q