3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new XMLWriter(); $xml->startElement('baf'); $xml->text('aaaa'); $xml->endElement(); var_dump($xml->outputMemory(TRUE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/23uQD
function name:  (null)
number of ops:  18
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
    5     3        INIT_METHOD_CALL                                         !0, 'startElement'
          4        SEND_VAL_EX                                              'baf'
          5        DO_FCALL                                      0          
    6     6        INIT_METHOD_CALL                                         !0, 'text'
          7        SEND_VAL_EX                                              'aaaa'
          8        DO_FCALL                                      0          
    7     9        INIT_METHOD_CALL                                         !0, 'endElement'
         10        DO_FCALL                                      0          
    9    11        INIT_FCALL                                               'var_dump'
         12        INIT_METHOD_CALL                                         !0, 'outputMemory'
         13        SEND_VAL_EX                                              <true>
         14        DO_FCALL                                      0  $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.66 ms | 1394 KiB | 15 Q