3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument; $title = $dom->createElement('title'); $node = $dom->createTextNode("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/raFAt
function name:  (null)
number of ops:  18
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, 'createTextNode'
          8        SEND_VAL_EX                                              'Hello%2C+World'
          9        DO_FCALL                                      0  $9      
         10        ASSIGN                                                   !2, $9
    9    11        INIT_METHOD_CALL                                         !1, 'appendChild'
         12        SEND_VAR_EX                                              !2
         13        DO_FCALL                                      0          
   10    14        INIT_METHOD_CALL                                         !3, 'appendChild'
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.22 ms | 1393 KiB | 13 Q