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/XPmv6
function name:  (null)
number of ops:  24
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          
    7     6        INIT_METHOD_CALL                                         !1, 'startElement'
          7        SEND_VAL_EX                                              'example'
          8        DO_FCALL                                      0          
    8     9        INIT_METHOD_CALL                                         !1, 'text'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0          
    9    12        INIT_METHOD_CALL                                         !1, 'endElement'
         13        DO_FCALL                                      0          
   11    14        INIT_METHOD_CALL                                         !1, 'outputMemory'
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                                   !2, $11
   12    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        IS_IDENTICAL                                     ~13     !2, '%3Cexample%3ED7007S%3C%2Fexample%3E'
         20        SEND_VAL                                                 ~13
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.99 ms | 1395 KiB | 15 Q