3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xml_string = '<?xml version="1.0" encoding="utf-8"?> <Order DeliveryNo="PH00127495JP"> <Status> <State StateDate="2016-06-28 11:37:47" StateMessage="亲,您的包裹已入库完成,祝您海淘愉快!" StateOperator="PH002JP" /> <State StateDate="2016-06-29 12:32:13" StateMessage="亲,您的包裹已安排极速转运!" StateOperator="PH002JP" /> <State StateDate="2016-07-02 09:16:58" StateMessage="亲,您的包裹已到达HK分拨中心,等待清关中!" StateOperator="PH005CN" /> <State StateDate="2016-07-04 09:32:16" StateMessage="亲,您的包裹已清关完毕!" StateOperator="PH006CN" /> </Status> </Order>'; libxml_disable_entity_loader(true); $obj = simplexml_load_string($xml_string, 'SimpleXMLElement', LIBXML_NOCDATA); print_r($obj); echo $obj->attributes()->DeliveryNo;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JZ3UP
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml_string, !1 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%0A%3COrder+DeliveryNo%3D%22PH00127495JP%22%3E%0A++++%3CStatus%3E%0A++++++++%3CState+StateDate%3D%222016-06-28+11%3A37%3A47%22+StateMessage%3D%22%E4%BA%B2%EF%BC%8C%E6%82%A8%E7%9A%84%E5%8C%85%E8%A3%B9%E5%B7%B2%E5%85%A5%E5%BA%93%E5%AE%8C%E6%88%90%EF%BC%8C%E7%A5%9D%E6%82%A8%E6%B5%B7%E6%B7%98%E6%84%89%E5%BF%AB%EF%BC%81%22+StateOperator%3D%22PH002JP%22+%2F%3E%0A++++++++%3CState+StateDate%3D%222016-06-29+12%3A32%3A13%22+StateMessage%3D%22%E4%BA%B2%EF%BC%8C%E6%82%A8%E7%9A%84%E5%8C%85%E8%A3%B9%E5%B7%B2%E5%AE%89%E6%8E%92%E6%9E%81%E9%80%9F%E8%BD%AC%E8%BF%90%EF%BC%81%22+StateOperator%3D%22PH002JP%22+%2F%3E%0A++++++++%3CState+StateDate%3D%222016-07-02+09%3A16%3A58%22+StateMessage%3D%22%E4%BA%B2%EF%BC%8C%E6%82%A8%E7%9A%84%E5%8C%85%E8%A3%B9%E5%B7%B2%E5%88%B0%E8%BE%BEHK%E5%88%86%E6%8B%A8%E4%B8%AD%E5%BF%83%EF%BC%8C%E7%AD%89%E5%BE%85%E6%B8%85%E5%85%B3%E4%B8%AD%EF%BC%81%22+StateOperator%3D%22PH005CN%22+%2F%3E%0A++++++++%3CState+StateDate%3D%222016-07-04+09%3A32%3A16%22+StateMessage%3D%22%E4%BA%B2%EF%BC%8C%E6%82%A8%E7%9A%84%E5%8C%85%E8%A3%B9%E5%B7%B2%E6%B8%85%E5%85%B3%E5%AE%8C%E6%AF%95%EF%BC%81%22+StateOperator%3D%22PH006CN%22+%2F%3E%0A++++%3C%2FStatus%3E%0A%3C%2FOrder%3E'
   11     1        INIT_FCALL                                                   'libxml_disable_entity_loader'
          2        SEND_VAL                                                     <true>
          3        DO_FCALL_BY_NAME                                             
   12     4        INIT_FCALL                                                   'simplexml_load_string'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     'SimpleXMLElement'
          7        SEND_VAL                                                     16384
          8        DO_ICALL                                             $4      
          9        ASSIGN                                                       !1, $4
   14    10        INIT_FCALL                                                   'print_r'
         11        SEND_VAR                                                     !1
         12        DO_ICALL                                                     
   16    13        INIT_METHOD_CALL                                             !1, 'attributes'
         14        DO_FCALL                                          0  $7      
         15        FETCH_OBJ_R                                          ~8      $7, 'DeliveryNo'
         16        ECHO                                                         ~8
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.03 ms | 2939 KiB | 16 Q