3v4l.org

run code in 300+ PHP versions simultaneously
<?php $writer = new XMLWriter; $writer ->openMemory(); $writer ->writeElement('example', 'F7007S'); $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/kLK2p
function name:  (null)
number of ops:  18
compiled vars:  !0 = $writer, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'XMLWriter'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_METHOD_CALL                                         !0, 'openMemory'
          4        DO_FCALL                                      0          
    5     5        INIT_METHOD_CALL                                         !0, 'writeElement'
          6        SEND_VAL_EX                                              'example'
          7        SEND_VAL_EX                                              'F7007S'
          8        DO_FCALL                                      0          
    7     9        INIT_METHOD_CALL                                         !0, 'outputMemory'
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !1, $7
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        IS_IDENTICAL                                     ~9      !1, '%3Cexample%3EF7007S%3C%2Fexample%3E'
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.18 ms | 1399 KiB | 15 Q