3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.16 ms | 1394 KiB | 15 Q