3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = "user@gmail.com"; $pass = "pass"; //Thông tin APP facebook $secretkey = "62f8ce9f74b12f84c123cc23437a4a32"; $api_key = "882a8490361da98702bf97a021ddc14d"; 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 tao_sig('xuantan');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EGGM9
function name:  (null)
number of ops:  18
compiled vars:  !0 = $user, !1 = $pass, !2 = $secretkey, !3 = $api_key, !4 = $postdata
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'user%40gmail.com'
    4     1        ASSIGN                                                   !1, 'pass'
    7     2        ASSIGN                                                   !2, '62f8ce9f74b12f84c123cc23437a4a32'
    8     3        ASSIGN                                                   !3, '882a8490361da98702bf97a021ddc14d'
   22     4        INIT_ARRAY                                       ~9      !3, 'api_key'
   23     5        ADD_ARRAY_ELEMENT                                ~9      !0, 'email'
   24     6        ADD_ARRAY_ELEMENT                                ~9      'JSON', 'format'
   25     7        ADD_ARRAY_ELEMENT                                ~9      'vi_vn', 'locale'
   26     8        ADD_ARRAY_ELEMENT                                ~9      'auth.login', 'method'
   27     9        ADD_ARRAY_ELEMENT                                ~9      !1, 'password'
   28    10        ADD_ARRAY_ELEMENT                                ~9      '0', 'return_ssl_resources'
   29    11        ADD_ARRAY_ELEMENT                                ~9      '1.0', 'v'
   21    12        ASSIGN                                                   !4, ~9
   32    13        INIT_FCALL                                               'tao_sig'
         14        SEND_VAL                                                 'xuantan'
         15        DO_FCALL                                      0  $11     
         16        ECHO                                                     $11
         17      > 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/EGGM9
function name:  tao_sig
number of ops:  15
compiled vars:  !0 = $postdata, !1 = $secretkey, !2 = $textsig, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        BIND_GLOBAL                                              !1, 'secretkey'
   11     2        ASSIGN                                                   !2, ''
   12     3      > FE_RESET_R                                       $6      !0, ->11
          4    > > FE_FETCH_R                                       ~7      $6, !3, ->11
          5    >   ASSIGN                                                   !4, ~7
   13     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
   12    10      > JMP                                                      ->4
         11    >   FE_FREE                                                  $6
   15    12        ASSIGN_OP                                     8          !2, !1
   18    13      > RETURN                                                   !2
   19    14*     > RETURN                                                   null

End of function tao_sig

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.73 ms | 1403 KiB | 14 Q