3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new XMLWriter(); $xml->openURI("php://output"); $xml->startDocument(); $xml->startElement("PostContent"); $xml->writeCDATA('<![CDATA[Foo & Bar]]>'); $xml->endElement(); $xml->endElement();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eSEfn
function name:  (null)
number of ops:  19
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, 'openURI'
          4        SEND_VAL_EX                                              'php%3A%2F%2Foutput'
          5        DO_FCALL                                      0          
    5     6        INIT_METHOD_CALL                                         !0, 'startDocument'
          7        DO_FCALL                                      0          
    7     8        INIT_METHOD_CALL                                         !0, 'startElement'
          9        SEND_VAL_EX                                              'PostContent'
         10        DO_FCALL                                      0          
    8    11        INIT_METHOD_CALL                                         !0, 'writeCDATA'
         12        SEND_VAL_EX                                              '%3C%21%5BCDATA%5BFoo+%26+Bar%5D%5D%3E'
         13        DO_FCALL                                      0          
    9    14        INIT_METHOD_CALL                                         !0, 'endElement'
         15        DO_FCALL                                      0          
   11    16        INIT_METHOD_CALL                                         !0, 'endElement'
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.88 ms | 1393 KiB | 13 Q