3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = ' <rsp stat="fail" version="1.0"> <err code="1" msg="Invalid API key or user key"/> </rsp> '; $ret = simplexml_load_string($res); print_r($ret->err[0]->attributes());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BILF2
function name:  (null)
number of ops:  13
compiled vars:  !0 = $res, !1 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A%3Crsp+stat%3D%22fail%22+version%3D%221.0%22%3E%0A++++%3Cerr+code%3D%221%22+msg%3D%22Invalid+API+key+or+user+key%22%2F%3E%0A%3C%2Frsp%3E%0A'
    8     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    9     5        INIT_FCALL                                               'print_r'
          6        FETCH_OBJ_R                                      ~5      !1, 'err'
          7        FETCH_DIM_R                                      ~6      ~5, 0
          8        INIT_METHOD_CALL                                         ~6, 'attributes'
          9        DO_FCALL                                      0  $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.98 ms | 1394 KiB | 17 Q