3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOS <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <paymentresponse> <merchant> <merchantid>10000001</merchantid> <accountid>20000001</accountid> </merchant> <transaction> <merchantref>Fh8F9fEpeK8qUFMHt0Vl</merchantref> </transaction> <status> <code>SUCCESS</code> <message>Request Successful</message> <reasons> <reason>VA1</reason> </reasons> <timestamp>2012-06-21T16:56:39.154+01:00</timestamp> </status> <requestkey>3b5bee9ffa8a446e8f30161516af1527</requestkey> </paymentresponse> EOS; var_dump(json_decode(json_encode((array)simplexml_load_string($xml)), 1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m3idB
function name:  (null)
number of ops:  16
compiled vars:  !0 = $xml
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+standalone%3D%22yes%22%3F%3E%0A%3Cpaymentresponse%3E%0A+++++%3Cmerchant%3E%0A+++++++++%3Cmerchantid%3E10000001%3C%2Fmerchantid%3E%0A+++++++++%3Caccountid%3E20000001%3C%2Faccountid%3E%0A+++++%3C%2Fmerchant%3E%0A+++++%3Ctransaction%3E%0A+++++++++%3Cmerchantref%3EFh8F9fEpeK8qUFMHt0Vl%3C%2Fmerchantref%3E%0A+++++%3C%2Ftransaction%3E%0A+++++%3Cstatus%3E%0A+++++++++%3Ccode%3ESUCCESS%3C%2Fcode%3E%0A+++++++++%3Cmessage%3ERequest+Successful%3C%2Fmessage%3E%0A+++++++++%3Creasons%3E%0A+++++++++++++%3Creason%3EVA1%3C%2Freason%3E%0A+++++++++%3C%2Freasons%3E%0A+++++++++%3Ctimestamp%3E2012-06-21T16%3A56%3A39.154%2B01%3A00%3C%2Ftimestamp%3E%0A+++++%3C%2Fstatus%3E%0A+++++%3Crequestkey%3E3b5bee9ffa8a446e8f30161516af1527%3C%2Frequestkey%3E%0A%3C%2Fpaymentresponse%3E'
   24     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'json_decode'
          3        INIT_FCALL                                               'json_encode'
          4        INIT_FCALL                                               'simplexml_load_string'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        CAST                                          7  ~3      $2
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.51 ms | 1395 KiB | 21 Q