3v4l.org

run code in 300+ PHP versions simultaneously
<?php function tao_sig($postdata){ global $secretkey; $textsig = ""; foreach($postdata as $key => $value){ $textsig .= "$key=$value"; } $textsig .= $secretkey; $textsig = md5($textsig); return $textsig; } $postdata = array( "api_key" => $api_key, "email" => $user, "format" => "JSON", "locale" => "vi_vn", "method" => "auth.login", "password" => $pass, "return_ssl_resources" => "0", "v" => "1.0" ); echo $textsig;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NSvpe
function name:  (null)
number of ops:  11
compiled vars:  !0 = $postdata, !1 = $api_key, !2 = $user, !3 = $pass, !4 = $textsig
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_ARRAY                                       ~5      !1, 'api_key'
   16     1        ADD_ARRAY_ELEMENT                                ~5      !2, 'email'
   17     2        ADD_ARRAY_ELEMENT                                ~5      'JSON', 'format'
   18     3        ADD_ARRAY_ELEMENT                                ~5      'vi_vn', 'locale'
   19     4        ADD_ARRAY_ELEMENT                                ~5      'auth.login', 'method'
   20     5        ADD_ARRAY_ELEMENT                                ~5      !3, 'password'
   21     6        ADD_ARRAY_ELEMENT                                ~5      '0', 'return_ssl_resources'
   22     7        ADD_ARRAY_ELEMENT                                ~5      '1.0', 'v'
   14     8        ASSIGN                                                   !0, ~5
   25     9        ECHO                                                     !4
         10      > RETURN                                                   1

Function tao_sig:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/NSvpe
function name:  tao_sig
number of ops:  19
compiled vars:  !0 = $postdata, !1 = $secretkey, !2 = $textsig, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        BIND_GLOBAL                                              !1, 'secretkey'
    4     2        ASSIGN                                                   !2, ''
    5     3      > FE_RESET_R                                       $6      !0, ->11
          4    > > FE_FETCH_R                                       ~7      $6, !3, ->11
          5    >   ASSIGN                                                   !4, ~7
    6     6        ROPE_INIT                                     3  ~10     !4
          7        ROPE_ADD                                      1  ~10     ~10, '%3D'
          8        ROPE_END                                      2  ~9      ~10, !3
          9        ASSIGN_OP                                     8          !2, ~9
    5    10      > JMP                                                      ->4
         11    >   FE_FREE                                                  $6
    8    12        ASSIGN_OP                                     8          !2, !1
    9    13        INIT_FCALL                                               'md5'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $14     
         16        ASSIGN                                                   !2, $14
   11    17      > RETURN                                                   !2
   12    18*     > RETURN                                                   null

End of function tao_sig

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.74 ms | 1396 KiB | 15 Q