3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument; $title = $dom->createElement('title'); $node = $dom->appendTextNode($title, "Hello, World!"); $title->appendChild($node); $head->appendChild($title);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiRR7
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dom, !1 = $title, !2 = $node, !3 = $head
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    5     3        INIT_METHOD_CALL                                         !0, 'createElement'
          4        SEND_VAL_EX                                              'title'
          5        DO_FCALL                                      0  $7      
          6        ASSIGN                                                   !1, $7
    7     7        INIT_METHOD_CALL                                         !0, 'appendTextNode'
          8        SEND_VAR_EX                                              !1
          9        SEND_VAL_EX                                              'Hello%2C+World%21'
         10        DO_FCALL                                      0  $9      
         11        ASSIGN                                                   !2, $9
    9    12        INIT_METHOD_CALL                                         !1, 'appendChild'
         13        SEND_VAR_EX                                              !2
         14        DO_FCALL                                      0          
   10    15        INIT_METHOD_CALL                                         !3, 'appendChild'
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.42 ms | 1393 KiB | 13 Q