3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new XMLWriter(); $xml->openMemory(); $xml->startElement('parent'); $xml->writeElement('child'); $xml->writeAttribute('parentAttribute'); $xml->endElement(); echo $xml->outputMemory();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vd6Qu
function name:  (null)
number of ops:  20
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'XMLWriter'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_METHOD_CALL                                         !0, 'openMemory'
          4        DO_FCALL                                      0          
    6     5        INIT_METHOD_CALL                                         !0, 'startElement'
          6        SEND_VAL_EX                                              'parent'
          7        DO_FCALL                                      0          
    7     8        INIT_METHOD_CALL                                         !0, 'writeElement'
          9        SEND_VAL_EX                                              'child'
         10        DO_FCALL                                      0          
    8    11        INIT_METHOD_CALL                                         !0, 'writeAttribute'
         12        SEND_VAL_EX                                              'parentAttribute'
         13        DO_FCALL                                      0          
    9    14        INIT_METHOD_CALL                                         !0, 'endElement'
         15        DO_FCALL                                      0          
   11    16        INIT_METHOD_CALL                                         !0, 'outputMemory'
         17        DO_FCALL                                      0  $9      
         18        ECHO                                                     $9
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.88 ms | 1385 KiB | 13 Q