3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = "89852696050"; $pass = "5301sfsegfseg1c"; //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( "meta_inf_fbmeta"=>"NO_FILE", "adid"=>"95a70813-2d44-4d1a-a004-287fc14bc930", "format"=>"json", "device_id"=>"52921518-7611-4407-b04b-9123f467fdb6", "email"=>"89852696050", "password"=>"5301c5301c", "cpl"=>"true", "family_device_id"=>"52921518-7611-4407-b04b-9123f467fdb6", "credentials_type"=>"password", "generate_session_cookies"=>"1", "error_detail_type"=>"button_with_disabled", "source"=>"login", "generate_machine_id"=>"1", "locale"=>"ru_RU", "client_country_code"=>"RU", "method"=>"auth.login", "fb_api_req_friendly_name"=>"authenticate", "fb_api_caller_class"=>"com.facebook.account.login.protocol.Fb4aAuthHandler", "api_key"=>"882a8490361da98702bf97a021ddc14d", "return_ssl_resources" => "0", "v" => "1.0" ); echo tao_sig($postdata);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dtf5V
function name:  (null)
number of ops:  10
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, '89852696050'
    4     1        ASSIGN                                                   !1, '5301sfsegfseg1c'
    7     2        ASSIGN                                                   !2, '62f8ce9f74b12f84c123cc23437a4a32'
    8     3        ASSIGN                                                   !3, '882a8490361da98702bf97a021ddc14d'
   22     4        ASSIGN                                                   !4, <array>
   46     5        INIT_FCALL                                               'tao_sig'
          6        SEND_VAR                                                 !4
          7        DO_FCALL                                      0  $10     
          8        ECHO                                                     $10
          9      > 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/Dtf5V
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
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        BIND_GLOBAL                                              !1, 'secretkey'
   12     2        ASSIGN                                                   !2, ''
   13     3      > FE_RESET_R                                       $6      !0, ->11
          4    > > FE_FETCH_R                                       ~7      $6, !3, ->11
          5    >   ASSIGN                                                   !4, ~7
   14     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
   13    10      > JMP                                                      ->4
         11    >   FE_FREE                                                  $6
   16    12        ASSIGN_OP                                     8          !2, !1
   17    13        INIT_FCALL                                               'md5'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $14     
         16        ASSIGN                                                   !2, $14
   19    17      > RETURN                                                   !2
   20    18*     > RETURN                                                   null

End of function tao_sig

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
236.54 ms | 1013 KiB | 15 Q