3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<xml <?xml version="1.0" encoding="utf-8"?> <RESPONSE> <SUCCESS>true</SUCCESS> <ERRORMESSAGE> </ERRORMESSAGE> <TIMESTAMP>21/09/2015 03:26:37</TIMESTAMP> </RESPONSE> xml; $response = simplexml_load_string($xml); $response = json_decode(json_encode($response), TRUE); print_r($response);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t2gYP
function name:  (null)
number of ops:  17
compiled vars:  !0 = $xml, !1 = $response
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%3F%3E%0A%3CRESPONSE%3E%0A++%3CSUCCESS%3Etrue%3C%2FSUCCESS%3E%0A++%3CERRORMESSAGE%3E%0A++%3C%2FERRORMESSAGE%3E%0A++%3CTIMESTAMP%3E21%2F09%2F2015+03%3A26%3A37%3C%2FTIMESTAMP%3E%0A%3C%2FRESPONSE%3E'
   13     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   14     5        INIT_FCALL                                               'json_decode'
          6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
   16    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.06 ms | 1395 KiB | 21 Q