3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlBuilder = new \SimpleXMLElement('<response></response>'); $xmlBuilder->addChild('result', '5'); $xmlBuilder->addChild('comment', $e->getMessage()); echo $xmlBuilder->asXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nrJNn
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xmlBuilder, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Cresponse%3E%3C%2Fresponse%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    3     4        INIT_METHOD_CALL                                         !0, 'addChild'
          5        SEND_VAL_EX                                              'result'
          6        SEND_VAL_EX                                              '5'
          7        DO_FCALL                                      0          
    4     8        INIT_METHOD_CALL                                         !0, 'addChild'
          9        SEND_VAL_EX                                              'comment'
         10        INIT_METHOD_CALL                                         !1, 'getMessage'
         11        DO_FCALL                                      0  $6      
         12        SEND_VAR_NO_REF_EX                                       $6
         13        DO_FCALL                                      0          
    5    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:
148.62 ms | 1393 KiB | 13 Q