3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dom = new DOMDocument('1.0', 'utf-8'); $element = $dom->createElement('test<>', 'This is the root element!'); var_dump($element);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L35Q6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $dom, !1 = $element
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'DOMDocument'
          1        SEND_VAL_EX                                                  '1.0'
          2        SEND_VAL_EX                                                  'utf-8'
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !0, $2
    5     5        INIT_METHOD_CALL                                             !0, 'createElement'
          6        SEND_VAL_EX                                                  'test%3C%3E'
          7        SEND_VAL_EX                                                  'This+is+the+root+element%21'
          8        DO_FCALL                                          0  $5      
          9        ASSIGN                                                       !1, $5
    6    10        INIT_FCALL                                                   'var_dump'
         11        SEND_VAR                                                     !1
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.55 ms | 476 KiB | 8 Q