3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.81 ms | 1393 KiB | 13 Q