3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument('1.0','utf-8'); $node1 = $dom->createElement('osef','blblblbl'); $dom->appendChild($node1); $stream = $dom->saveXML(); $isResource = is_resource($stream); echo $isResource; echo "blblbl";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t1WcC
function name:  (null)
number of ops:  21
compiled vars:  !0 = $dom, !1 = $node1, !2 = $stream, !3 = $isResource
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DOMDocument'
          1        SEND_VAL_EX                                              '1.0'
          2        SEND_VAL_EX                                              'utf-8'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $4
    4     5        INIT_METHOD_CALL                                         !0, 'createElement'
          6        SEND_VAL_EX                                              'osef'
          7        SEND_VAL_EX                                              'blblblbl'
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
    5    10        INIT_METHOD_CALL                                         !0, 'appendChild'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0          
    7    13        INIT_METHOD_CALL                                         !0, 'saveXML'
         14        DO_FCALL                                      0  $10     
         15        ASSIGN                                                   !2, $10
    9    16        TYPE_CHECK                                  512  ~12     !2
         17        ASSIGN                                                   !3, ~12
   11    18        ECHO                                                     !3
   12    19        ECHO                                                     'blblbl'
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.14 ms | 1393 KiB | 13 Q