3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $response = false; $data = '<?xml version="1.0" encoding="UTF-8"?><result><status>0</status><error>FATAL_ERROR</error></result>'; if (is_array($data) && ((isset($data['result']['result']['status']) && $data['result']['result']['status']) || (isset($data['result']['result']['STATUS']) && $data['result']['result']['STATUS'])) ) { $response = $data['result']; } var_dump($response);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 26
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 25
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 24
Branch analysis from position: 25
Branch analysis from position: 15
Branch analysis from position: 26
filename:       /in/orGQh
function name:  (null)
number of ops:  33
compiled vars:  !0 = $response, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, <false>
    6     4        ASSIGN                                                   !1, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3Cresult%3E%3Cstatus%3E0%3C%2Fstatus%3E%3Cerror%3EFATAL_ERROR%3C%2Ferror%3E%3C%2Fresult%3E'
    7     5        TYPE_CHECK                                  128  ~5      !1
          6      > JMPZ_EX                                          ~5      ~5, ->26
          7    >   FETCH_DIM_IS                                     ~6      !1, 'result'
          8        FETCH_DIM_IS                                     ~7      ~6, 'result'
          9        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      ~7, 'status'
         10      > JMPZ_EX                                          ~8      ~8, ->15
         11    >   FETCH_DIM_R                                      ~9      !1, 'result'
         12        FETCH_DIM_R                                      ~10     ~9, 'result'
         13        FETCH_DIM_R                                      ~11     ~10, 'status'
         14        BOOL                                             ~8      ~11
         15    > > JMPNZ_EX                                         ~8      ~8, ->25
         16    >   FETCH_DIM_IS                                     ~12     !1, 'result'
         17        FETCH_DIM_IS                                     ~13     ~12, 'result'
         18        ISSET_ISEMPTY_DIM_OBJ                         0  ~14     ~13, 'STATUS'
         19      > JMPZ_EX                                          ~14     ~14, ->24
         20    >   FETCH_DIM_R                                      ~15     !1, 'result'
         21        FETCH_DIM_R                                      ~16     ~15, 'result'
         22        FETCH_DIM_R                                      ~17     ~16, 'STATUS'
         23        BOOL                                             ~14     ~17
         24    >   BOOL                                             ~8      ~14
         25    >   BOOL                                             ~5      ~8
         26    > > JMPZ                                                     ~5, ->29
         27    >   FETCH_DIM_R                                      ~18     !1, 'result'
         28        ASSIGN                                                   !0, ~18
    9    29    >   INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.94 ms | 1396 KiB | 17 Q