3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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;
based on DtPW1
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Notice: Undefined variable: api_key in /in/NSvpe on line 15 Notice: Undefined variable: user in /in/NSvpe on line 16 Notice: Undefined variable: pass in /in/NSvpe on line 20 Notice: Undefined variable: textsig in /in/NSvpe on line 25
Output for hhvm-3.15.4
Notice: Undefined variable: api_key in /in/NSvpe on line 23 Notice: Undefined variable: user in /in/NSvpe on line 23 Notice: Undefined variable: pass in /in/NSvpe on line 23 Notice: Undefined variable: textsig in /in/NSvpe on line 25