3v4l.org

run code in 300+ PHP versions simultaneously
<?php $AWS_ACCESS_KEY = 'AKIAIDMODWRW3CRDO2BA'; $AWS_PRIVATE_KEY = 'kMuJRvcejqzMvmoZWsURIDKkteVTXa3ReDXQ6RqE'; $AWS_REGION = 'us-west-2'; $TOPIC_ARN_UPDATECUS = 'arn:aws:sns:us-west-2:791920038536:updateCusNumberRequest'; $endpoints = array( 'US-EAST-1' => 'sns.us-east-1.amazonaws.com', 'US-WEST-1' => 'sns.us-west-1.amazonaws.com', 'US-WEST-2' => 'sns.us-west-2.amazonaws.com', 'EU-WEST-1' => 'sns.eu-west-1.amazonaws.com', 'AP-SE-1' => 'sns.ap-southeast-1.amazonaws.com', 'AP-NE-1' => 'sns.ap-northeast-1.amazonaws.com', 'SA-EAST-1' => 'sns.sa-east-1.amazonaws.com' ); $endpoint = $endpoints[strtoupper($AWS_REGION)]; $protocol = 'https://'; $message = array( 'topic' => 'updateCusNumberRequest', 'email' => 'test', 'cus_id' => '123' ); $params = array( 'TopicArn' => $TOPIC_ARN_UPDATECUS, 'Message' => json_encode($message) ); $params['Action'] = 'Publish'; $params['AWSAccessKeyId'] = $AWS_ACCESS_KEY; $params['Timestamp'] = gmdate('Y-m-d\TH:i:s\Z'); $params['SignatureVersion'] = 2; $params['SignatureMethod'] = 'HmacSHA256'; uksort($params, 'strnatcmp'); $queryString = ''; foreach ($params as $key => $val) { $queryString .= "&{$key}=".rawurlencode($val); } $queryString = substr($queryString, 1); $requestString = "GET\n" . $endpoint."\n" . "/\n" . $queryString; $params['Signature'] = base64_encode( php_compat_hash_hmac('sha256', $requestString, $AWS_PRIVATE_KEY, true) ); $request = $protocol . $endpoint . '/?' . php_compat_http_build_query($params); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $request); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $output = curl_exec($ch); $curlErrorNo = curl_errno($ch); $curlError = curl_error($ch); $info = curl_getinfo($ch); curl_close($ch); if ((floor($info['http_code'] / 100) == 2) === false) { if (strpos($output, '<Error>') !== FALSE) { echo "Amazon returned an XML error"; } else{ if(!empty($curlErrorNo)) { echo "There was a problem executing curl" . $curlError . " - " . $curlErrorNo; } else{ echo "There was a problem executing this request " . $info['http_code']; } } } else { echo "All good!"; } /* php4 compatible functions */ //http://bit.ly/ZeSVQ5 function php_compat_hash_hmac($algo, $data, $key, $raw_output = false) { $blocksize = 64; $ipad = str_repeat("\x36", $blocksize); $opad = str_repeat("\x5c", $blocksize); if (strlen($key) > $blocksize) { $key = hash($algo, $key, true); } else { $key = str_pad($key, $blocksize, "\x00"); } $ipad ^= $key; $opad ^= $key; return hash($algo, $opad . hash($algo, $ipad . $data, true), $raw_output); } //http://bit.ly/1uH6OR0 if (!function_exists('json_encode')) { function json_encode($a=false) { if (is_null($a)) return 'null'; if ($a === false) return 'false'; if ($a === true) return 'true'; if (is_scalar($a)) { if (is_float($a)) { // Always use "." for floats. return floatval(str_replace(",", ".", strval($a))); } if (is_string($a)) { $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\b", "\f", '"'), array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"')); return '"' . str_replace($jsonReplaces[0], $jsonReplaces[1], $a) . '"'; } else return $a; } $isList = true; for ($i = 0, reset($a); $i < count($a); $i++, next($a)) { if (key($a) !== $i) { $isList = false; break; } } $result = array(); if ($isList) { foreach ($a as $v) $result[] = json_encode($v); return '[' . join(',', $result) . ']'; } else { foreach ($a as $k => $v) $result[] = json_encode($k).':'.json_encode($v); return '{' . join(',', $result) . '}'; } } } //http://bit.ly/1q8GwII if (!function_exists('http_build_query')) { function http_build_query($data, $prefix = null, $sep = '', $key = '') { $ret = array(); foreach ((array )$data as $k => $v) { $k = urlencode($k); if (is_int($k) && $prefix != null) { $k = $prefix . $k; } if (!empty($key)) { $k = $key . "[" . $k . "]"; } if (is_array($v) || is_object($v)) { array_push($ret, http_build_query($v, "", $sep, $k)); } else { array_push($ret, $k . "=" . urlencode($v)); } } if (empty($sep)) { $sep = ini_get("arg_separator.output"); } return implode($sep, $ret); } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 37, Position 2 = 48
Branch analysis from position: 37
2 jumps found. (Code = 78) Position 1 = 38, Position 2 = 48
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 119, Position 2 = 139
Branch analysis from position: 119
2 jumps found. (Code = 43) Position 1 = 125, Position 2 = 127
Branch analysis from position: 125
1 jumps found. (Code = 42) Position 1 = 138
Branch analysis from position: 138
1 jumps found. (Code = 42) Position 1 = 140
Branch analysis from position: 140
2 jumps found. (Code = 43) Position 1 = 145, Position 2 = 146
Branch analysis from position: 145
2 jumps found. (Code = 43) Position 1 = 151, Position 2 = 152
Branch analysis from position: 151
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 152
Branch analysis from position: 146
Branch analysis from position: 127
2 jumps found. (Code = 43) Position 1 = 130, Position 2 = 135
Branch analysis from position: 130
1 jumps found. (Code = 42) Position 1 = 138
Branch analysis from position: 138
Branch analysis from position: 135
1 jumps found. (Code = 42) Position 1 = 140
Branch analysis from position: 140
Branch analysis from position: 139
2 jumps found. (Code = 43) Position 1 = 145, Position 2 = 146
Branch analysis from position: 145
Branch analysis from position: 146
Branch analysis from position: 48
filename:       /in/cJ3k2
function name:  (null)
number of ops:  153
compiled vars:  !0 = $AWS_ACCESS_KEY, !1 = $AWS_PRIVATE_KEY, !2 = $AWS_REGION, !3 = $TOPIC_ARN_UPDATECUS, !4 = $endpoints, !5 = $endpoint, !6 = $protocol, !7 = $message, !8 = $params, !9 = $queryString, !10 = $val, !11 = $key, !12 = $requestString, !13 = $request, !14 = $ch, !15 = $output, !16 = $curlErrorNo, !17 = $curlError, !18 = $info
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'AKIAIDMODWRW3CRDO2BA'
    4     1        ASSIGN                                                   !1, 'kMuJRvcejqzMvmoZWsURIDKkteVTXa3ReDXQ6RqE'
    5     2        ASSIGN                                                   !2, 'us-west-2'
    6     3        ASSIGN                                                   !3, 'arn%3Aaws%3Asns%3Aus-west-2%3A791920038536%3AupdateCusNumberRequest'
    8     4        ASSIGN                                                   !4, <array>
   18     5        INIT_FCALL                                               'strtoupper'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $24     
          8        FETCH_DIM_R                                      ~25     !4, $24
          9        ASSIGN                                                   !5, ~25
   19    10        ASSIGN                                                   !6, 'https%3A%2F%2F'
   21    11        ASSIGN                                                   !7, <array>
   28    12        INIT_ARRAY                                       ~29     !3, 'TopicArn'
   29    13        INIT_FCALL                                               'json_encode'
         14        SEND_VAR                                                 !7
         15        DO_ICALL                                         $30     
         16        ADD_ARRAY_ELEMENT                                ~29     $30, 'Message'
   27    17        ASSIGN                                                   !8, ~29
   32    18        ASSIGN_DIM                                               !8, 'Action'
         19        OP_DATA                                                  'Publish'
   33    20        ASSIGN_DIM                                               !8, 'AWSAccessKeyId'
         21        OP_DATA                                                  !0
   34    22        INIT_FCALL                                               'gmdate'
         23        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3As%5CZ'
         24        DO_ICALL                                         $35     
         25        ASSIGN_DIM                                               !8, 'Timestamp'
         26        OP_DATA                                                  $35
   35    27        ASSIGN_DIM                                               !8, 'SignatureVersion'
         28        OP_DATA                                                  2
   36    29        ASSIGN_DIM                                               !8, 'SignatureMethod'
         30        OP_DATA                                                  'HmacSHA256'
   38    31        INIT_FCALL                                               'uksort'
         32        SEND_REF                                                 !8
         33        SEND_VAL                                                 'strnatcmp'
         34        DO_ICALL                                                 
   39    35        ASSIGN                                                   !9, ''
   40    36      > FE_RESET_R                                       $40     !8, ->48
         37    > > FE_FETCH_R                                       ~41     $40, !10, ->48
         38    >   ASSIGN                                                   !11, ~41
   41    39        ROPE_INIT                                     3  ~44     '%26'
         40        ROPE_ADD                                      1  ~44     ~44, !11
         41        ROPE_END                                      2  ~43     ~44, '%3D'
         42        INIT_FCALL                                               'rawurlencode'
         43        SEND_VAR                                                 !10
         44        DO_ICALL                                         $46     
         45        CONCAT                                           ~47     ~43, $46
         46        ASSIGN_OP                                     8          !9, ~47
   40    47      > JMP                                                      ->37
         48    >   FE_FREE                                                  $40
   43    49        INIT_FCALL                                               'substr'
         50        SEND_VAR                                                 !9
         51        SEND_VAL                                                 1
         52        DO_ICALL                                         $49     
         53        ASSIGN                                                   !9, $49
   46    54        CONCAT                                           ~51     'GET%0A', !5
         55        CONCAT                                           ~52     ~51, '%0A'
   47    56        CONCAT                                           ~53     ~52, '%2F%0A'
   48    57        CONCAT                                           ~54     ~53, !9
   45    58        ASSIGN                                                   !12, ~54
   50    59        INIT_FCALL                                               'base64_encode'
   51    60        INIT_FCALL_BY_NAME                                       'php_compat_hash_hmac'
         61        SEND_VAL_EX                                              'sha256'
         62        SEND_VAR_EX                                              !12
         63        SEND_VAR_EX                                              !1
         64        SEND_VAL_EX                                              <true>
         65        DO_FCALL                                      0  $57     
         66        SEND_VAR                                                 $57
         67        DO_ICALL                                         $58     
   50    68        ASSIGN_DIM                                               !8, 'Signature'
   51    69        OP_DATA                                                  $58
   54    70        CONCAT                                           ~59     !6, !5
         71        CONCAT                                           ~60     ~59, '%2F%3F'
         72        INIT_FCALL_BY_NAME                                       'php_compat_http_build_query'
         73        SEND_VAR_EX                                              !8
         74        DO_FCALL                                      0  $61     
         75        CONCAT                                           ~62     ~60, $61
         76        ASSIGN                                                   !13, ~62
   56    77        INIT_FCALL_BY_NAME                                       'curl_init'
         78        DO_FCALL                                      0  $64     
         79        ASSIGN                                                   !14, $64
   57    80        INIT_FCALL_BY_NAME                                       'curl_setopt'
         81        SEND_VAR_EX                                              !14
         82        FETCH_CONSTANT                                   ~66     'CURLOPT_URL'
         83        SEND_VAL_EX                                              ~66
         84        SEND_VAR_EX                                              !13
         85        DO_FCALL                                      0          
   58    86        INIT_FCALL_BY_NAME                                       'curl_setopt'
         87        SEND_VAR_EX                                              !14
         88        FETCH_CONSTANT                                   ~68     'CURLOPT_RETURNTRANSFER'
         89        SEND_VAL_EX                                              ~68
         90        SEND_VAL_EX                                              <true>
         91        DO_FCALL                                      0          
   60    92        INIT_FCALL_BY_NAME                                       'curl_exec'
         93        SEND_VAR_EX                                              !14
         94        DO_FCALL                                      0  $70     
         95        ASSIGN                                                   !15, $70
   62    96        INIT_FCALL_BY_NAME                                       'curl_errno'
         97        SEND_VAR_EX                                              !14
         98        DO_FCALL                                      0  $72     
         99        ASSIGN                                                   !16, $72
   63   100        INIT_FCALL_BY_NAME                                       'curl_error'
        101        SEND_VAR_EX                                              !14
        102        DO_FCALL                                      0  $74     
        103        ASSIGN                                                   !17, $74
   64   104        INIT_FCALL_BY_NAME                                       'curl_getinfo'
        105        SEND_VAR_EX                                              !14
        106        DO_FCALL                                      0  $76     
        107        ASSIGN                                                   !18, $76
   66   108        INIT_FCALL_BY_NAME                                       'curl_close'
        109        SEND_VAR_EX                                              !14
        110        DO_FCALL                                      0          
   68   111        INIT_FCALL                                               'floor'
        112        FETCH_DIM_R                                      ~79     !18, 'http_code'
        113        DIV                                              ~80     ~79, 100
        114        SEND_VAL                                                 ~80
        115        DO_ICALL                                         $81     
        116        IS_EQUAL                                         ~82     $81, 2
        117        TYPE_CHECK                                    4          ~82
        118      > JMPZ                                                     ~83, ->139
   70   119    >   INIT_FCALL                                               'strpos'
        120        SEND_VAR                                                 !15
        121        SEND_VAL                                                 '%3CError%3E'
        122        DO_ICALL                                         $84     
        123        TYPE_CHECK                                  1018          $84
        124      > JMPZ                                                     ~85, ->127
   72   125    >   ECHO                                                     'Amazon+returned+an+XML+error'
        126      > JMP                                                      ->138
   75   127    >   ISSET_ISEMPTY_CV                                 ~86     !16
        128        BOOL_NOT                                         ~87     ~86
        129      > JMPZ                                                     ~87, ->135
   77   130    >   CONCAT                                           ~88     'There+was+a+problem+executing+curl', !17
        131        CONCAT                                           ~89     ~88, '+-+'
        132        CONCAT                                           ~90     ~89, !16
        133        ECHO                                                     ~90
        134      > JMP                                                      ->138
   80   135    >   FETCH_DIM_R                                      ~91     !18, 'http_code'
        136        CONCAT                                           ~92     'There+was+a+problem+executing+this+request+', ~91
        137        ECHO                                                     ~92
        138    > > JMP                                                      ->140
   86   139    >   ECHO                                                     'All+good%21'
  113   140    >   INIT_FCALL                                               'function_exists'
        141        SEND_VAL                                                 'json_encode'
        142        DO_ICALL                                         $93     
        143        BOOL_NOT                                         ~94     $93
        144      > JMPZ                                                     ~94, ->146
  115   145    >   DECLARE_FUNCTION                                         'json_encode'
  160   146    >   INIT_FCALL                                               'function_exists'
        147        SEND_VAL                                                 'http_build_query'
        148        DO_ICALL                                         $95     
        149        BOOL_NOT                                         ~96     $95
        150      > JMPZ                                                     ~96, ->152
  161   151    >   DECLARE_FUNCTION                                         'http_build_query'
  189   152    > > RETURN                                                   1

Function php_compat_hash_hmac:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 25
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cJ3k2
function name:  php_compat_hash_hmac
number of ops:  47
compiled vars:  !0 = $algo, !1 = $data, !2 = $key, !3 = $raw_output, !4 = $blocksize, !5 = $ipad, !6 = $opad
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   93     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV_INIT                                        !3      <false>
   95     4        ASSIGN                                                   !4, 64
   97     5        INIT_FCALL                                               'str_repeat'
          6        SEND_VAL                                                 '6'
          7        SEND_VAR                                                 !4
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !5, $8
   98    10        INIT_FCALL                                               'str_repeat'
         11        SEND_VAL                                                 '%5C'
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !6, $10
  100    15        STRLEN                                           ~12     !2
         16        IS_SMALLER                                               !4, ~12
         17      > JMPZ                                                     ~13, ->25
  101    18    >   INIT_FCALL                                               'hash'
         19        SEND_VAR                                                 !0
         20        SEND_VAR                                                 !2
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $14     
         23        ASSIGN                                                   !2, $14
         24      > JMP                                                      ->31
  103    25    >   INIT_FCALL                                               'str_pad'
         26        SEND_VAR                                                 !2
         27        SEND_VAR                                                 !4
         28        SEND_VAL                                                 '%00'
         29        DO_ICALL                                         $16     
         30        ASSIGN                                                   !2, $16
  106    31    >   ASSIGN_OP                                    11          !5, !2
  107    32        ASSIGN_OP                                    11          !6, !2
  109    33        INIT_FCALL                                               'hash'
         34        SEND_VAR                                                 !0
         35        INIT_FCALL                                               'hash'
         36        SEND_VAR                                                 !0
         37        CONCAT                                           ~20     !5, !1
         38        SEND_VAL                                                 ~20
         39        SEND_VAL                                                 <true>
         40        DO_ICALL                                         $21     
         41        CONCAT                                           ~22     !6, $21
         42        SEND_VAL                                                 ~22
         43        SEND_VAR                                                 !3
         44        DO_ICALL                                         $23     
         45      > RETURN                                                   $23
  110    46*     > RETURN                                                   null

End of function php_compat_hash_hmac

Function %00json_encode%2Fin%2FcJ3k2%3A115%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 37
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 22
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 36
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 54
Branch analysis from position: 54
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 43
Branch analysis from position: 57
2 jumps found. (Code = 43) Position 1 = 59, Position 2 = 76
Branch analysis from position: 59
2 jumps found. (Code = 77) Position 1 = 60, Position 2 = 67
Branch analysis from position: 60
2 jumps found. (Code = 78) Position 1 = 61, Position 2 = 67
Branch analysis from position: 61
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
Branch analysis from position: 67
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 67
Branch analysis from position: 76
2 jumps found. (Code = 77) Position 1 = 77, Position 2 = 90
Branch analysis from position: 77
2 jumps found. (Code = 78) Position 1 = 78, Position 2 = 90
Branch analysis from position: 78
1 jumps found. (Code = 42) Position 1 = 77
Branch analysis from position: 77
Branch analysis from position: 90
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 90
Branch analysis from position: 43
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 50
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 43
Branch analysis from position: 57
Branch analysis from position: 43
filename:       /in/cJ3k2
function name:  json_encode
number of ops:  99
compiled vars:  !0 = $a, !1 = $jsonReplaces, !2 = $isList, !3 = $i, !4 = $result, !5 = $v, !6 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  115     0  E >   RECV_INIT                                        !0      <false>
  117     1        TYPE_CHECK                                    2          !0
          2      > JMPZ                                                     ~7, ->4
          3    > > RETURN                                                   'null'
  118     4    >   TYPE_CHECK                                    4          !0
          5      > JMPZ                                                     ~8, ->7
          6    > > RETURN                                                   'false'
  119     7    >   TYPE_CHECK                                    8          !0
          8      > JMPZ                                                     ~9, ->10
          9    > > RETURN                                                   'true'
  120    10    >   TYPE_CHECK                                  124          !0
         11      > JMPZ                                                     ~10, ->37
  122    12    >   TYPE_CHECK                                   32          !0
         13      > JMPZ                                                     ~11, ->22
  125    14    >   INIT_FCALL                                               'str_replace'
         15        SEND_VAL                                                 '%2C'
         16        SEND_VAL                                                 '.'
         17        CAST                                          6  ~12     !0
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                         $13     
         20        CAST                                          5  ~14     $13
         21      > RETURN                                                   ~14
  128    22    >   TYPE_CHECK                                   64          !0
         23      > JMPZ                                                     ~15, ->36
  130    24    >   ASSIGN                                                   !1, <array>
  131    25        INIT_FCALL                                               'str_replace'
         26        FETCH_DIM_R                                      ~17     !1, 0
         27        SEND_VAL                                                 ~17
         28        FETCH_DIM_R                                      ~18     !1, 1
         29        SEND_VAL                                                 ~18
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                         $19     
         32        CONCAT                                           ~20     '%22', $19
         33        CONCAT                                           ~21     ~20, '%22'
         34      > RETURN                                                   ~21
         35*       JMP                                                      ->37
  134    36    > > RETURN                                                   !0
  136    37    >   ASSIGN                                                   !2, <true>
  137    38        ASSIGN                                                   !3, 0
         39        INIT_FCALL                                               'reset'
         40        SEND_REF                                                 !0
         41        DO_ICALL                                                 
         42      > JMP                                                      ->54
  139    43    >   INIT_FCALL                                               'key'
         44        SEND_VAR                                                 !0
         45        DO_ICALL                                         $25     
         46        IS_NOT_IDENTICAL                                         !3, $25
         47      > JMPZ                                                     ~26, ->50
  141    48    >   ASSIGN                                                   !2, <false>
  142    49      > JMP                                                      ->57
  137    50    >   PRE_INC                                                  !3
         51        INIT_FCALL                                               'next'
         52        SEND_REF                                                 !0
         53        DO_ICALL                                                 
         54    >   COUNT                                            ~30     !0
         55        IS_SMALLER                                               !3, ~30
         56      > JMPNZ                                                    ~31, ->43
  145    57    >   ASSIGN                                                   !4, <array>
  146    58      > JMPZ                                                     !2, ->76
  148    59    > > FE_RESET_R                                       $33     !0, ->67
         60    > > FE_FETCH_R                                               $33, !5, ->67
         61    >   INIT_FCALL                                               'json_encode'
         62        SEND_VAR                                                 !5
         63        DO_ICALL                                         $35     
         64        ASSIGN_DIM                                               !4
         65        OP_DATA                                                  $35
         66      > JMP                                                      ->60
         67    >   FE_FREE                                                  $33
  149    68        INIT_FCALL                                               'join'
         69        SEND_VAL                                                 '%2C'
         70        SEND_VAR                                                 !4
         71        DO_ICALL                                         $36     
         72        CONCAT                                           ~37     '%5B', $36
         73        CONCAT                                           ~38     ~37, '%5D'
         74      > RETURN                                                   ~38
         75*       JMP                                                      ->98
  153    76    > > FE_RESET_R                                       $39     !0, ->90
         77    > > FE_FETCH_R                                       ~40     $39, !5, ->90
         78    >   ASSIGN                                                   !6, ~40
         79        INIT_FCALL                                               'json_encode'
         80        SEND_VAR                                                 !6
         81        DO_ICALL                                         $43     
         82        CONCAT                                           ~44     $43, '%3A'
         83        INIT_FCALL                                               'json_encode'
         84        SEND_VAR                                                 !5
         85        DO_ICALL                                         $45     
         86        CONCAT                                           ~46     ~44, $45
         87        ASSIGN_DIM                                               !4
         88        OP_DATA                                                  ~46
         89      > JMP                                                      ->77
         90    >   FE_FREE                                                  $39
  154    91        INIT_FCALL                                               'join'
         92        SEND_VAL                                                 '%2C'
         93        SEND_VAR                                                 !4
         94        DO_ICALL                                         $47     
         95        CONCAT                                           ~48     '%7B', $47
         96        CONCAT                                           ~49     ~48, '%7D'
         97      > RETURN                                                   ~49
  156    98*     > RETURN                                                   null

End of function %00json_encode%2Fin%2FcJ3k2%3A115%240

Function %00http_build_query%2Fin%2FcJ3k2%3A161%241:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 53
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 53
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 27
Branch analysis from position: 23
2 jumps found. (Code = 47) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 43
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 31
Branch analysis from position: 27
Branch analysis from position: 20
Branch analysis from position: 17
Branch analysis from position: 53
2 jumps found. (Code = 43) Position 1 = 56, Position 2 = 60
Branch analysis from position: 56
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 60
Branch analysis from position: 53
filename:       /in/cJ3k2
function name:  http_build_query
number of ops:  66
compiled vars:  !0 = $data, !1 = $prefix, !2 = $sep, !3 = $key, !4 = $ret, !5 = $v, !6 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  161     0  E >   RECV                                             !0      
          1        RECV_

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.99 ms | 1420 KiB | 49 Q