3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXmlElement('<?xml version="1.0" encoding="UTF-8"?><response></response>'); $xml->response->addChild('id_shop', 1234); $xml->response->addChild('result', 0); echo $xml->asXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eWEQV
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SimpleXmlElement'
          1        SEND_VAL_EX                                              '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3Cresponse%3E%3C%2Fresponse%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        FETCH_OBJ_R                                      ~4      !0, 'response'
          5        INIT_METHOD_CALL                                         ~4, 'addChild'
          6        SEND_VAL_EX                                              'id_shop'
          7        SEND_VAL_EX                                              1234
          8        DO_FCALL                                      0          
    5     9        FETCH_OBJ_R                                      ~6      !0, 'response'
         10        INIT_METHOD_CALL                                         ~6, 'addChild'
         11        SEND_VAL_EX                                              'result'
         12        SEND_VAL_EX                                              0
         13        DO_FCALL                                      0          
    7    14        INIT_METHOD_CALL                                         !0, 'asXML'
         15        DO_FCALL                                      0  $8      
         16        ECHO                                                     $8
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.13 ms | 1393 KiB | 13 Q