3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = <<<EOT <?xml version="1.0" encoding="UTF-8"?> <Response> <Errors> <Error> <ErrorId>XML999</ErrorId> <ErrorText><![CDATA[cvc-complex-type: Invalid content was found starting with XXX. One of '{XXX}' is expected.]]></ErrorText> </Error> </Errors> </Response> EOT; $xml = simplexml_load_string($s); echo $xml->Errors->Error->ErrorId.PHP_EOL; echo $xml->Errors->Error->ErrorText.PHP_EOL; echo var_dump($xml);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l6Xmu
function name:  (null)
number of ops:  20
compiled vars:  !0 = $s, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3CResponse%3E%0A%3CErrors%3E%0A%09%3CError%3E%0A%09%3CErrorId%3EXML999%3C%2FErrorId%3E%0A%09%3CErrorText%3E%3C%21%5BCDATA%5Bcvc-complex-type%3A+Invalid+content+was+found+starting+with+XXX.+One+of+%27%7BXXX%7D%27+is+expected.%5D%5D%3E%3C%2FErrorText%3E%0A%09%3C%2FError%3E%0A%3C%2FErrors%3E%0A%3C%2FResponse%3E'
   16     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   18     5        FETCH_OBJ_R                                      ~5      !1, 'Errors'
          6        FETCH_OBJ_R                                      ~6      ~5, 'Error'
          7        FETCH_OBJ_R                                      ~7      ~6, 'ErrorId'
          8        CONCAT                                           ~8      ~7, '%0A'
          9        ECHO                                                     ~8
   19    10        FETCH_OBJ_R                                      ~9      !1, 'Errors'
         11        FETCH_OBJ_R                                      ~10     ~9, 'Error'
         12        FETCH_OBJ_R                                      ~11     ~10, 'ErrorText'
         13        CONCAT                                           ~12     ~11, '%0A'
         14        ECHO                                                     ~12
   21    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $13     
         18        ECHO                                                     $13
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.68 ms | 1399 KiB | 17 Q