3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response[0]['status2']= 'sent2'; //$response = array('status'=>'bla'); //log_message('error', var_export($response, true)); //log_message('error', var_export($response[0]["status"], true)); switch (@$response[0]["status"]) { default: case 'error': case 'rejected': case 'invalid': if (array_key_exists("reject_reason", $response)) { echo '$this->_set_error_message(\'Error\', $response["reject_reason"]);'; } else { echo '$this->_set_error_message(\'Error\', "Unknown response");'; } die('return FALSE'); break; case 'quoted': case 'scheduled': case 'sent': die('return TRUE'); break; } echo 'return nic';
Finding entry points
Branch analysis from position: 0
8 jumps found. (Code = 188) Position 1 = 21, Position 2 = 21, Position 3 = 21, Position 4 = 28, Position 5 = 28, Position 6 = 28, Position 7 = 21, Position 8 = 8
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 21
Branch analysis from position: 28
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 28
Branch analysis from position: 21
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 21
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 28
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 28
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 28
Branch analysis from position: 28
Branch analysis from position: 28
Branch analysis from position: 21
Branch analysis from position: 21
Branch analysis from position: 21
filename:       /in/Dbde0
function name:  (null)
number of ops:  33
compiled vars:  !0 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_W                                      $1      !0, 0
          1        ASSIGN_DIM                                               $1, 'status2'
          2        OP_DATA                                                  'sent2'
    8     3        BEGIN_SILENCE                                    ~3      
          4        FETCH_DIM_R                                      ~4      !0, 0
          5        FETCH_DIM_R                                      ~5      ~4, 'status'
          6        END_SILENCE                                              ~3
          7      > SWITCH_STRING                                            ~5, [ 'error':->21, 'rejected':->21, 'invalid':->21, 'quoted':->28, 'scheduled':->28, 'sent':->28, ], ->21
   11     8    >   CASE                                                     ~5, 'error'
          9      > JMPNZ                                                    ~6, ->21
   12    10    >   CASE                                                     ~5, 'rejected'
         11      > JMPNZ                                                    ~6, ->21
   13    12    >   CASE                                                     ~5, 'invalid'
         13      > JMPNZ                                                    ~6, ->21
   27    14    >   CASE                                                     ~5, 'quoted'
         15      > JMPNZ                                                    ~6, ->28
   28    16    >   CASE                                                     ~5, 'scheduled'
         17      > JMPNZ                                                    ~6, ->28
   29    18    >   CASE                                                     ~5, 'sent'
         19      > JMPNZ                                                    ~6, ->28
         20    > > JMP                                                      ->21
   15    21    >   ARRAY_KEY_EXISTS                                         'reject_reason', !0
         22      > JMPZ                                                     ~7, ->25
   17    23    >   ECHO                                                     '%24this-%3E_set_error_message%28%27Error%27%2C+%24response%5B%22reject_reason%22%5D%29%3B'
         24      > JMP                                                      ->26
   21    25    >   ECHO                                                     '%24this-%3E_set_error_message%28%27Error%27%2C+%22Unknown+response%22%29%3B'
   24    26    > > EXIT                                                     'return+FALSE'
   25    27*       JMP                                                      ->30
   30    28    > > EXIT                                                     'return+TRUE'
   31    29*       JMP                                                      ->30
         30*       FREE                                                     ~5
   35    31*       ECHO                                                     'return+nic'
         32*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.2 ms | 1403 KiB | 13 Q