3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<xml <?xml version="1.0" encoding="utf-8"?> <RESPONSE> <e></e> <e1> </e1> <e2> s </e2> <e3>s</e3> <e4> </e4> </RESPONSE> xml; $simpleXmlObj = simplexml_load_string($xml); $response = xml2array($simpleXmlObj); print_r($response);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SFg8I
function name:  (null)
number of ops:  13
compiled vars:  !0 = $xml, !1 = $simpleXmlObj, !2 = $response
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%3CRESPONSE%3E%0A++%3Ce%3E%3C%2Fe%3E%0A++%3Ce1%3E++%3C%2Fe1%3E%0A++%3Ce2%3E+s+%3C%2Fe2%3E%0A++%3Ce3%3Es%3C%2Fe3%3E%0A++%3Ce4%3E%0A++%3C%2Fe4%3E%0A%3C%2FRESPONSE%3E'
   14     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   15     5        INIT_FCALL_BY_NAME                                       'xml2array'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !2, $6
   16     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
205.57 ms | 1394 KiB | 17 Q