3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><paymentresponse><merchant><merchantid>1000001</merchantid><accountid>2000034</accountid></merchant><transaction><merchantref>yAq3ueCIDG1u3Q9Y2Tfs</merchantref><amount>1000</amount><currency>USD</currency><transactiontype>ECOMMERCE</transactiontype></transaction><status><code>SUCCESS</code><message>Operation successful</message><timestamp>2012-07-24T13:48:05+01:00</timestamp></status></paymentresponse>'; $data = (array) simplexml_load_string($xml); var_dump($data); var_dump(json_decode(json_encode($data),1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p4NPJ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $xml, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22%3F%3E%3Cpaymentresponse%3E%3Cmerchant%3E%3Cmerchantid%3E1000001%3C%2Fmerchantid%3E%3Caccountid%3E2000034%3C%2Faccountid%3E%3C%2Fmerchant%3E%3Ctransaction%3E%3Cmerchantref%3EyAq3ueCIDG1u3Q9Y2Tfs%3C%2Fmerchantref%3E%3Camount%3E1000%3C%2Famount%3E%3Ccurrency%3EUSD%3C%2Fcurrency%3E%3Ctransactiontype%3EECOMMERCE%3C%2Ftransactiontype%3E%3C%2Ftransaction%3E%3Cstatus%3E%3Ccode%3ESUCCESS%3C%2Fcode%3E%3Cmessage%3EOperation+successful%3C%2Fmessage%3E%3Ctimestamp%3E2012-07-24T13%3A48%3A05%2B01%3A00%3C%2Ftimestamp%3E%3C%2Fstatus%3E%3C%2Fpaymentresponse%3E'
    5     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        CAST                                          7  ~4      $3
          5        ASSIGN                                                   !1, ~4
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'json_decode'
         11        INIT_FCALL                                               'json_encode'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        SEND_VAL                                                 1
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.82 ms | 1395 KiB | 21 Q