3v4l.org

run code in 300+ PHP versions simultaneously
<?php $writer = new XMLWriter; $writer->openMemory(); $writer->startElement('example'); $writer->text('D7007S'); $wrtier->endElement(); $xml = $writer ->outputMemory(); var_dump($xml, $xml === '<example>F7007S</example>');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/92ftm
function name:  (null)
number of ops:  22
compiled vars:  !0 = $writer, !1 = $wrtier, !2 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'XMLWriter'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        INIT_METHOD_CALL                                         !0, 'openMemory'
          4        DO_FCALL                                      0          
    5     5        INIT_METHOD_CALL                                         !0, 'startElement'
          6        SEND_VAL_EX                                              'example'
          7        DO_FCALL                                      0          
    6     8        INIT_METHOD_CALL                                         !0, 'text'
          9        SEND_VAL_EX                                              'D7007S'
         10        DO_FCALL                                      0          
    7    11        INIT_METHOD_CALL                                         !1, 'endElement'
         12        DO_FCALL                                      0          
    9    13        INIT_METHOD_CALL                                         !0, 'outputMemory'
         14        DO_FCALL                                      0  $10     
         15        ASSIGN                                                   !2, $10
   10    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !2
         18        IS_IDENTICAL                                     ~12     !2, '%3Cexample%3EF7007S%3C%2Fexample%3E'
         19        SEND_VAL                                                 ~12
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.97 ms | 1395 KiB | 15 Q